mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Remove "Lots" and "???" from number_words
Instead, for any number that isn't in the list of number words, just return the regular Arabic numerical representation (i.e. just convert it to string). It's better than having "Lots" or "???", neither of which really tell you what the number actually is.
This commit is contained in:
@@ -220,13 +220,9 @@ std::string UtilityClass::number_words( int _t )
|
||||
static const std::string tens_place[] = {"Ten", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"};
|
||||
static const std::string teens[] = {"Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen"};
|
||||
|
||||
if (_t < 0)
|
||||
if (_t < 0 || _t > 100)
|
||||
{
|
||||
return "???";
|
||||
}
|
||||
else if (_t > 100)
|
||||
{
|
||||
return "Lots";
|
||||
return String(_t);
|
||||
}
|
||||
else if (_t == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user