diff options
author | Sven Hesse | 2009-06-22 10:14:18 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-22 10:14:18 +0000 |
commit | 7fbad08fd1cb85363628a71ffab5580c8612fe1c (patch) | |
tree | 81e9cbd80a5e89d0f8c90da9072aa4b4812568dc /engines/gob/draw.cpp | |
parent | 962fc19b57a13cb8de2c194f325e6c9b8b4fc1a0 (diff) | |
download | scummvm-rg350-7fbad08fd1cb85363628a71ffab5580c8612fe1c.tar.gz scummvm-rg350-7fbad08fd1cb85363628a71ffab5580c8612fe1c.tar.bz2 scummvm-rg350-7fbad08fd1cb85363628a71ffab5580c8612fe1c.zip |
Implemented a call stack
svn-id: r41754
Diffstat (limited to 'engines/gob/draw.cpp')
-rw-r--r-- | engines/gob/draw.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/gob/draw.cpp b/engines/gob/draw.cpp index 5c0cb47352..83266beb3a 100644 --- a/engines/gob/draw.cpp +++ b/engines/gob/draw.cpp @@ -391,9 +391,8 @@ void Draw::printTextCentered(int16 id, int16 left, int16 top, int16 right, adjustCoords(1, &right, &bottom); if (READ_LE_UINT16(_vm->_game->_script->getData() + 0x7E) != 0) { - uint32 startPos = _vm->_game->_script->pos(); + _vm->_game->_script->call(READ_LE_UINT16(_vm->_game->_script->getData() + 0x7E)); - _vm->_game->_script->seek(READ_LE_UINT16(_vm->_game->_script->getData() + 0x7E)); WRITE_VAR(17, (uint32) id); WRITE_VAR(18, (uint32) left); WRITE_VAR(19, (uint32) top); @@ -401,7 +400,7 @@ void Draw::printTextCentered(int16 id, int16 left, int16 top, int16 right, WRITE_VAR(21, (uint32) (bottom - top + 1)); _vm->_inter->funcBlock(0); - _vm->_game->_script->seek(startPos); + _vm->_game->_script->pop(); } if (str[0] == '\0') |