aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_fascin.cpp
diff options
context:
space:
mode:
authorSven Hesse2011-01-29 22:45:15 +0000
committerSven Hesse2011-01-29 22:45:15 +0000
commit0c3a33c354c027ee238186794d96c3047d0a4ce2 (patch)
treec6c0a8a7bb8e5e3973c53574a9b30efa6b3df337 /engines/gob/inter_fascin.cpp
parent05d5d64d6c108bcf57e67ff3976c1cd0324a30ef (diff)
downloadscummvm-rg350-0c3a33c354c027ee238186794d96c3047d0a4ce2.tar.gz
scummvm-rg350-0c3a33c354c027ee238186794d96c3047d0a4ce2.tar.bz2
scummvm-rg350-0c3a33c354c027ee238186794d96c3047d0a4ce2.zip
GOB: Change _curTotFile and _totToLoad into Common::String
svn-id: r55629
Diffstat (limited to 'engines/gob/inter_fascin.cpp')
-rw-r--r--engines/gob/inter_fascin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/gob/inter_fascin.cpp b/engines/gob/inter_fascin.cpp
index b1dc9e0348..80f6755a36 100644
--- a/engines/gob/inter_fascin.cpp
+++ b/engines/gob/inter_fascin.cpp
@@ -133,12 +133,12 @@ void Inter_Fascination::oFascin_repeatUntil(OpFuncParams &params) {
flag = _vm->_game->_script->evalBoolResult();
// WORKAROUND: The script of the PC version of Fascination, when the protection check
- // fails, writes on purpose everywhere in the memory in order to hang the computer.
+ // fails, writes on purpose everywhere in the memory in order to hang the computer.
// This results in a crash in Scummvm. This workaround avoids that crash.
if (_vm->getPlatform() == Common::kPlatformPC) {
- if ((!scumm_stricmp(_vm->_game->_curTotFile, "INTRO1.TOT") && (blockPos == 3533)) ||
- (!scumm_stricmp(_vm->_game->_curTotFile, "INTRO2.TOT") && (blockPos == 3519)) ||
- (!scumm_stricmp(_vm->_game->_curTotFile, "INTRO2.TOT") && (blockPos == 3265))) //PC Hebrew
+ if ((_vm->_game->_curTotFile.equalsIgnoreCase("INTRO1.TOT") && (blockPos == 3533)) ||
+ (_vm->_game->_curTotFile.equalsIgnoreCase("INTRO2.TOT") && (blockPos == 3519)) ||
+ (_vm->_game->_curTotFile.equalsIgnoreCase("INTRO2.TOT") && (blockPos == 3265))) //PC Hebrew
_terminate = 1;
}
} while (!flag && !_break && !_terminate && !_vm->shouldQuit());