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
|
else
|
||||||
{
|
{
|
||||||
while(cc = *(stringData++))
|
return atoi(stringData);
|
||||||
{
|
|
||||||
currentNumber *= base;
|
|
||||||
if(cc >= '0' && cc <= '9')
|
|
||||||
currentNumber += cc - '0';
|
|
||||||
else
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return currentNumber;
|
return currentNumber;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user