diff options
author | md5 | 2011-03-04 01:42:09 +0200 |
---|---|---|
committer | md5 | 2011-03-04 01:42:09 +0200 |
commit | 18c0dae5fcd0314a77cf30ac0bd7c6494961de24 (patch) | |
tree | 44c7e0a4cc1d17192732ef320d2c622bcdfe7f8a /engines | |
parent | 78c00744c21b95e98f022f037dbb38591112a104 (diff) | |
download | scummvm-rg350-18c0dae5fcd0314a77cf30ac0bd7c6494961de24.tar.gz scummvm-rg350-18c0dae5fcd0314a77cf30ac0bd7c6494961de24.tar.bz2 scummvm-rg350-18c0dae5fcd0314a77cf30ac0bd7c6494961de24.zip |
SCI: Removed warning from kReadNumber
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kstring.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp index 5c6ef06910..df77b8e933 100644 --- a/engines/sci/engine/kstring.cpp +++ b/engines/sci/engine/kstring.cpp @@ -159,17 +159,9 @@ reg_t kReadNumber(EngineState *s, int argc, reg_t *argv) { source++; } while (*source) { - if ((*source < '0') || (*source > '9')) { - // Sierra's atoi stopped processing at anything which is not - // a digit. Sometimes the input has a trailing space, that's - // fine (example: lsl3) - if (*source != ' ') { - // TODO: this happens in lsl5 right in the intro -> we get '1' '3' 0xCD 0xCD 0xCD 0xCD 0xCD - // find out why this happens and fix it - warning("Invalid character in kReadNumber input"); - } + if ((*source < '0') || (*source > '9')) + // Stop if we encounter anything other than a digit (like atoi) break; - } result *= 10; result += *source - 0x30; source++; |