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:
phosit
2026-08-06 19:09:46 +02:00
parent e4b72711e6
commit 45ea0432a2
7 changed files with 18 additions and 24 deletions
@@ -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())
);
}