diff options
author | lukaslw | 2014-07-05 16:05:34 +0200 |
---|---|---|
committer | lukaslw | 2014-07-05 16:05:57 +0200 |
commit | 727b16cf7389c9e4b0a855eafdd677e7cf0e0d1b (patch) | |
tree | 95ca638240a8587c8961d5c1b6ba177285b52165 /engines/prince | |
parent | 092c3683b49288f9068a8dee5ae8db9071baab07 (diff) | |
download | scummvm-rg350-727b16cf7389c9e4b0a855eafdd677e7cf0e0d1b.tar.gz scummvm-rg350-727b16cf7389c9e4b0a855eafdd677e7cf0e0d1b.tar.bz2 scummvm-rg350-727b16cf7389c9e4b0a855eafdd677e7cf0e0d1b.zip |
PRINCE: checkSeq() update
Diffstat (limited to 'engines/prince')
-rw-r--r-- | engines/prince/script.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp index 4c9c28f1b3..7322752e6d 100644 --- a/engines/prince/script.cpp +++ b/engines/prince/script.cpp @@ -1375,29 +1375,17 @@ void Interpreter::O_SUBSTRING() { int Interpreter::checkSeq(byte *string) { int freeHSlotIncrease = 0; byte c; - while (1) { - c = string[0]; + while ((c = string[0]) != 0xFF) { string++; if (c < 0xF0) { - //not_spec freeHSlotIncrease++; - while (1) { - c = string[0]; - if (c == 0) { - break; - } + while ((c = string[0])) { string++; } string++; - continue; - } - if (c == 0xFF) { - break; - } - if (c == 0xFE) { - continue; // pause + } else if (c != 0xFE) { + string++; } - string++; } return freeHSlotIncrease; } |