mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Don't use floating point arithmetics for formatted count (Bug #4346)
This commit is contained in:
parent
60a663ef58
commit
3b922d810a
1 changed files with 3 additions and 3 deletions
|
@ -18,11 +18,11 @@ namespace
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
if (count > 999999999)
|
if (count > 999999999)
|
||||||
return MyGUI::utility::toString(int(count/1000000000.f)) + "b";
|
return MyGUI::utility::toString(count/1000000000) + "b";
|
||||||
else if (count > 999999)
|
else if (count > 999999)
|
||||||
return MyGUI::utility::toString(int(count/1000000.f)) + "m";
|
return MyGUI::utility::toString(count/1000000) + "m";
|
||||||
else if (count > 9999)
|
else if (count > 9999)
|
||||||
return MyGUI::utility::toString(int(count/1000.f)) + "k";
|
return MyGUI::utility::toString(count/1000) + "k";
|
||||||
else
|
else
|
||||||
return MyGUI::utility::toString(count);
|
return MyGUI::utility::toString(count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue