fix setting negative numbers in the old console (using atoi)
This commit is contained in:
parent
0787086c81
commit
602cbf0701
@ -146,14 +146,7 @@ int TPTScriptInterface::parseNumber(char * stringData)
|
||||
}
|
||||
else
|
||||
{
|
||||
while(cc = *(stringData++))
|
||||
{
|
||||
currentNumber *= base;
|
||||
if(cc >= '0' && cc <= '9')
|
||||
currentNumber += cc - '0';
|
||||
else
|
||||
break;
|
||||
}
|
||||
return atoi(stringData);
|
||||
}
|
||||
return currentNumber;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user