mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-04 18:29:41 +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:
parent
5e25161a10
commit
8ca53fa5d2
1 changed files with 2 additions and 6 deletions
|
@ -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 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"};
|
static const std::string teens[] = {"Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen"};
|
||||||
|
|
||||||
if (_t < 0)
|
if (_t < 0 || _t > 100)
|
||||||
{
|
{
|
||||||
return "???";
|
return String(_t);
|
||||||
}
|
|
||||||
else if (_t > 100)
|
|
||||||
{
|
|
||||||
return "Lots";
|
|
||||||
}
|
}
|
||||||
else if (_t == 0)
|
else if (_t == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue