mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-26 14:55:03 +00:00
Remove CStr::FromDouble
In most places `fmt::format` is used because it's locale indidendant. For the user reporter the locale dependant form of `fmt::format` is used because it's shown to the user.
This commit is contained in:
@@ -280,9 +280,9 @@ void SendNetworkFlare(JS::HandleValue position)
|
||||
// (TODO?): Converting the doubles into strings here is a workaround because direct (de)serialisation of floating point numbers is not supported.
|
||||
// It causes somewhat awkward message handling, but the resulting efficiency losses are negligible.
|
||||
g_NetClient->SendFlareMessage(
|
||||
CStr::FromDouble(positionX.toNumber()),
|
||||
CStr::FromDouble(positionY.toNumber()),
|
||||
CStr::FromDouble(positionZ.toNumber())
|
||||
fmt::format("{}", positionX.toNumber()),
|
||||
fmt::format("{}", positionY.toNumber()),
|
||||
fmt::format("{}", positionZ.toNumber())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user