diff options
author | Sven Hesse | 2009-06-23 01:20:05 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-23 01:20:05 +0000 |
commit | ec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b (patch) | |
tree | e6ab25e769e88275f8752466ca932c7b10d0135a /engines/gob/game_v1.cpp | |
parent | 4fa11436a0f97be92bcb0a8bfcfc6fd55840013c (diff) | |
download | scummvm-rg350-ec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b.tar.gz scummvm-rg350-ec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b.tar.bz2 scummvm-rg350-ec5b2d6c9ac7ef9370392f3a0c3e25b136dcb72b.zip |
Added a method to query the number of variables needed by a Script
svn-id: r41791
Diffstat (limited to 'engines/gob/game_v1.cpp')
-rw-r--r-- | engines/gob/game_v1.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/gob/game_v1.cpp b/engines/gob/game_v1.cpp index f038c7edc3..725ee6d8ff 100644 --- a/engines/gob/game_v1.cpp +++ b/engines/gob/game_v1.cpp @@ -49,7 +49,6 @@ void Game_v1::playTot(int16 skipPlay) { int16 _captureCounter; int16 breakFrom; int16 nestLevel; - int32 variablesCount; int16 *oldNestLevel = _vm->_inter->_nestLevel; int16 *oldBreakFrom = _vm->_inter->_breakFromLevel; @@ -169,7 +168,7 @@ void Game_v1::playTot(int16 skipPlay) { _vm->_global->_inter_animDataSize = READ_LE_UINT16(_script->getData() + 0x38); if (!_vm->_inter->_variables) - _vm->_inter->allocateVars(READ_LE_UINT16(_script->getData() + 0x2C)); + _vm->_inter->allocateVars(_script->getVariablesCount() & 0xFFFF); _script->seek(READ_LE_UINT32(_script->getData() + 0x64)); @@ -186,7 +185,6 @@ void Game_v1::playTot(int16 skipPlay) { if (_totToLoad[0] != 0) _vm->_inter->_terminate = 0; - variablesCount = READ_LE_UINT32(_script->getData() + 0x2C); _vm->_draw->blitInvalidated(); _script->unload(); |