diff options
author | Arnaud Boutonné | 2010-12-19 23:44:53 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-12-19 23:44:53 +0000 |
commit | 8a1f628d3784ae6c91f9afc31c84c61648d827a7 (patch) | |
tree | 1660c7292cec7e704ddd03451eaf5a23bd591295 /engines/hugo | |
parent | da53b85498e0ad2cc1b2f53415028b7b1a11d166 (diff) | |
download | scummvm-rg350-8a1f628d3784ae6c91f9afc31c84c61648d827a7.tar.gz scummvm-rg350-8a1f628d3784ae6c91f9afc31c84c61648d827a7.tar.bz2 scummvm-rg350-8a1f628d3784ae6c91f9afc31c84c61648d827a7.zip |
HUGO: Fix case bug in God Mode
svn-id: r54969
Diffstat (limited to 'engines/hugo')
-rw-r--r-- | engines/hugo/parser_v1w.cpp | 8 | ||||
-rw-r--r-- | engines/hugo/parser_v3d.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/hugo/parser_v1w.cpp b/engines/hugo/parser_v1w.cpp index 1fbf41a476..6629dd03f1 100644 --- a/engines/hugo/parser_v1w.cpp +++ b/engines/hugo/parser_v1w.cpp @@ -138,7 +138,7 @@ void Parser_v1w::lineHandler() { // Toggle God Mode if (!strncmp(_line, "PPG", 3)) { _vm->_sound->playSound(!_vm->_soundTest, BOTH_CHANNELS, HIGH_PRI); - gameStatus.godModeFl ^= 1; + gameStatus.godModeFl = !gameStatus.godModeFl; return; } @@ -153,7 +153,7 @@ void Parser_v1w::lineHandler() { // Special code to allow me to go straight to any screen if (strstr(_line, "goto")) { for (int i = 0; i < _vm->_numScreens; i++) { - if (!strcmp(&_line[strlen("goto") + 1], _vm->_screenNames[i])) { + if (!scumm_stricmp(&_line[strlen("goto") + 1], _vm->_screenNames[i])) { _vm->_scheduler->newScreen(i); return; } @@ -171,7 +171,7 @@ void Parser_v1w::lineHandler() { if (strstr(_line, "fetch")) { for (int i = 0; i < _vm->_object->_numObj; i++) { - if (!strcmp(&_line[strlen("fetch") + 1], _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][0])) { + if (!scumm_stricmp(&_line[strlen("fetch") + 1], _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][0])) { takeObject(&_vm->_object->_objects[i]); return; } @@ -181,7 +181,7 @@ void Parser_v1w::lineHandler() { // Special code to allow me to goto objects if (strstr(_line, "find")) { for (int i = 0; i < _vm->_object->_numObj; i++) { - if (!strcmp(&_line[strlen("find") + 1], _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][0])) { + if (!scumm_stricmp(&_line[strlen("find") + 1], _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][0])) { _vm->_scheduler->newScreen(_vm->_object->_objects[i].screenIndex); return; } diff --git a/engines/hugo/parser_v3d.cpp b/engines/hugo/parser_v3d.cpp index c78af20ef3..bba42f6cf8 100644 --- a/engines/hugo/parser_v3d.cpp +++ b/engines/hugo/parser_v3d.cpp @@ -61,7 +61,7 @@ void Parser_v3d::lineHandler() { // Toggle God Mode if (!strncmp(_line, "PPG", 3)) { _vm->_sound->playSound(!_vm->_soundTest, BOTH_CHANNELS, HIGH_PRI); - gameStatus.godModeFl ^= 1; + gameStatus.godModeFl = !gameStatus.godModeFl; return; } @@ -76,7 +76,7 @@ void Parser_v3d::lineHandler() { // Special code to allow me to go straight to any screen if (strstr(_line, "goto")) { for (int i = 0; i < _vm->_numScreens; i++) { - if (!strcmp(&_line[strlen("goto") + 1], _vm->_screenNames[i])) { + if (!scumm_stricmp(&_line[strlen("goto") + 1], _vm->_screenNames[i])) { _vm->_scheduler->newScreen(i); return; } @@ -94,7 +94,7 @@ void Parser_v3d::lineHandler() { if (strstr(_line, "fetch")) { for (int i = 0; i < _vm->_object->_numObj; i++) { - if (!strcmp(&_line[strlen("fetch") + 1], _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][0])) { + if (!scumm_stricmp(&_line[strlen("fetch") + 1], _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][0])) { takeObject(&_vm->_object->_objects[i]); return; } @@ -104,7 +104,7 @@ void Parser_v3d::lineHandler() { // Special code to allow me to goto objects if (strstr(_line, "find")) { for (int i = 0; i < _vm->_object->_numObj; i++) { - if (!strcmp(&_line[strlen("find") + 1], _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][0])) { + if (!scumm_stricmp(&_line[strlen("find") + 1], _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][0])) { _vm->_scheduler->newScreen(_vm->_object->_objects[i].screenIndex); return; } |