aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2011-01-18 11:51:45 +0000
committerSven Hesse2011-01-18 11:51:45 +0000
commit1c63862f2bd13606899c28e556645f95bd374c72 (patch)
treec14e2d75465451094da0072833159b1ceb5ccd2b
parenta6073a649a9cd9a363085297df1336ba71a1964d (diff)
downloadscummvm-rg350-1c63862f2bd13606899c28e556645f95bd374c72.tar.gz
scummvm-rg350-1c63862f2bd13606899c28e556645f95bd374c72.tar.bz2
scummvm-rg350-1c63862f2bd13606899c28e556645f95bd374c72.zip
GOB: Add a workaround for Inca2
The scripts seem to depend on var32_236 to be cleared at the start of each new script file. svn-id: r55295
-rw-r--r--engines/gob/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp
index 98c1066cb0..09f925bcc7 100644
--- a/engines/gob/game.cpp
+++ b/engines/gob/game.cpp
@@ -324,6 +324,10 @@ void Game::playTot(int16 skipPlay) {
WRITE_VAR(14, _vm->_global->_soundFlags);
WRITE_VAR(15, _vm->_global->_fakeVideoMode);
WRITE_VAR(16, _vm->_global->_language);
+
+ // WORKAROUND: Inca2 seems to depend on that variable to be cleared
+ if (_vm->getGameType() == kGameTypeInca2)
+ WRITE_VAR(59, 0);
}
_vm->_inter->callSub(2);