mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-24 21:15:12 +00:00
Fix level compiling with decimals
This commit is contained in:
parent
ef4a83dc88
commit
87e772c8ea
1 changed files with 5 additions and 1 deletions
|
@ -25,10 +25,14 @@ s64 DynOS_Misc_ParseInteger(const String& _Arg, bool* found) {
|
|||
}
|
||||
} else {
|
||||
// is a decimal number
|
||||
if (*argStr == '-' || *argStr == '+') {
|
||||
// good
|
||||
argStr++;
|
||||
}
|
||||
while(*argStr != '\0') {
|
||||
if (*argStr >= '0' && *argStr <= '9') {
|
||||
// good
|
||||
} else if (*argStr == '-' || *argStr == '+') {
|
||||
} else if (*argStr == '.') {
|
||||
// good
|
||||
} else {
|
||||
// bad character
|
||||
|
|
Loading…
Reference in a new issue