diff options
author | Sven Hesse | 2009-06-23 01:23:14 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-23 01:23:14 +0000 |
commit | fcddd5c69a2b7f6496d76af09786c10db042fe7a (patch) | |
tree | 69860ee17d6c8492ceaded634d9f66421d9533c1 /engines/gob/game_v2.cpp | |
parent | c967db5fa0f523f685991e87bbf7d3510ac45a98 (diff) | |
download | scummvm-rg350-fcddd5c69a2b7f6496d76af09786c10db042fe7a.tar.gz scummvm-rg350-fcddd5c69a2b7f6496d76af09786c10db042fe7a.tar.bz2 scummvm-rg350-fcddd5c69a2b7f6496d76af09786c10db042fe7a.zip |
Replacing the 2 offset functions by a generic Script::getFunctionOffset()
svn-id: r41797
Diffstat (limited to 'engines/gob/game_v2.cpp')
-rw-r--r-- | engines/gob/game_v2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/game_v2.cpp b/engines/gob/game_v2.cpp index e4b4b73661..54a70949bf 100644 --- a/engines/gob/game_v2.cpp +++ b/engines/gob/game_v2.cpp @@ -199,7 +199,7 @@ void Game_v2::playTot(int16 skipPlay) { if (!_vm->_inter->_variables) _vm->_inter->allocateVars(_script->getVariablesCount() & 0xFFFF); - _script->seek(_script->getStartOffset()); + _script->seek(_script->getFunctionOffset(Script::kFunctionStart)); _vm->_inter->renewTimeInVars(); @@ -269,7 +269,7 @@ void Game_v2::playTot(int16 skipPlay) { } else { _vm->_inter->initControlVars(0); _vm->_scenery->_pCaptureCounter = oldCaptureCounter; - _script->seek(READ_LE_UINT16(_script->getData() + (skipPlay << 1) + 0x66)); + _script->seek(_script->getFunctionOffset(skipPlay + 1)); _menuLevel++; _vm->_inter->callSub(2); |