1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01: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:
Misa 2022-07-04 23:14:44 -07:00
parent 5e25161a10
commit 8ca53fa5d2

View file

@ -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)
{