aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDavid Turner2010-06-29 03:53:06 +0000
committerDavid Turner2010-06-29 03:53:06 +0000
commit59f4c903a6fab1c60e925ce315fc077e1721eab0 (patch)
tree48ee13cae2ab09d0804468bbe3c302b588844de2 /engines
parent48a107b821c21867a3627ac0cb2d072041ddcc56 (diff)
downloadscummvm-rg350-59f4c903a6fab1c60e925ce315fc077e1721eab0.tar.gz
scummvm-rg350-59f4c903a6fab1c60e925ce315fc077e1721eab0.tar.bz2
scummvm-rg350-59f4c903a6fab1c60e925ce315fc077e1721eab0.zip
GOB : Adding workaround for Bug #3018918 UOTODDV Reload Goblin Stuck Issue.
This was present in the original interpreter. svn-id: r50480
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/inter_v1.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp
index b35e0b8a82..9e841e7e68 100644
--- a/engines/gob/inter_v1.cpp
+++ b/engines/gob/inter_v1.cpp
@@ -813,6 +813,14 @@ bool Inter_v1::o1_if(OpFuncParams &params) {
byte cmd;
bool boolRes;
+ // WORKAROUND: Windows Gob1 OUTODDV reload goblin stuck bug present in original
+ if ((_vm->getGameType() == kGameTypeGob1) && (_vm->_game->_script->pos() == 11294) &&
+ !scumm_stricmp(_vm->_game->_curTotFile, "avt00.tot") && VAR(59) == 1) {
+ warning("Workaround for Win Gob1 OUTODDV Reload Goblin Stuck Bug...");
+ WRITE_VAR(285, 0);
+ WRITE_VAR(59, 0);
+ }
+
boolRes = _vm->_game->_script->evalBoolResult();
if (boolRes) {
if ((params.counter == params.cmdCount) && (params.retFlag == 2))