mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
Account for all possible count values in getCountString (Bug #4346)
This commit is contained in:
parent
9b8c56761b
commit
60a663ef58
@ -16,7 +16,12 @@ namespace
|
|||||||
{
|
{
|
||||||
if (count == 1)
|
if (count == 1)
|
||||||
return "";
|
return "";
|
||||||
if (count > 9999)
|
|
||||||
|
if (count > 999999999)
|
||||||
|
return MyGUI::utility::toString(int(count/1000000000.f)) + "b";
|
||||||
|
else if (count > 999999)
|
||||||
|
return MyGUI::utility::toString(int(count/1000000.f)) + "m";
|
||||||
|
else if (count > 9999)
|
||||||
return MyGUI::utility::toString(int(count/1000.f)) + "k";
|
return MyGUI::utility::toString(int(count/1000.f)) + "k";
|
||||||
else
|
else
|
||||||
return MyGUI::utility::toString(count);
|
return MyGUI::utility::toString(count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user