fix setting negative numbers in the old console (using atoi)

This commit is contained in:
jacob1 2013-04-09 23:13:13 -04:00
parent 0787086c81
commit 602cbf0701

View File

@ -146,14 +146,7 @@ int TPTScriptInterface::parseNumber(char * stringData)
} }
else else
{ {
while(cc = *(stringData++)) return atoi(stringData);
{
currentNumber *= base;
if(cc >= '0' && cc <= '9')
currentNumber += cc - '0';
else
break;
}
} }
return currentNumber; return currentNumber;
} }