HUGO: Fix case bug in God Mode
svn-id: r54969
This commit is contained in:
parent
da53b85498
commit
8a1f628d37
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue