diff options
author | Matthew Hoops | 2010-02-12 21:15:30 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-02-12 21:15:30 +0000 |
commit | e32497c54c1790cc9b3fffc638b43b6c52391f09 (patch) | |
tree | 56397c7f1def4613d603b1903bd0197c4081f8e9 /engines/mohawk/riven_external.cpp | |
parent | a3a07f19fcf6a001e5981d3efe66e834a404f1e3 (diff) | |
download | scummvm-rg350-e32497c54c1790cc9b3fffc638b43b6c52391f09.tar.gz scummvm-rg350-e32497c54c1790cc9b3fffc638b43b6c52391f09.tar.bz2 scummvm-rg350-e32497c54c1790cc9b3fffc638b43b6c52391f09.zip |
Fix trap book external commands.
svn-id: r48037
Diffstat (limited to 'engines/mohawk/riven_external.cpp')
-rw-r--r-- | engines/mohawk/riven_external.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/engines/mohawk/riven_external.cpp b/engines/mohawk/riven_external.cpp index 4ee1c19f9a..51bfcd409d 100644 --- a/engines/mohawk/riven_external.cpp +++ b/engines/mohawk/riven_external.cpp @@ -353,29 +353,21 @@ void RivenExternal::xacathbooknextpage(uint16 argc, uint16 *argv) { void RivenExternal::xtrapbookback(uint16 argc, uint16 *argv) { // Return to where we were before entering the book + *_vm->matchVarToString("atrap") = 0; _vm->changeToStack(*_vm->matchVarToString("returnstackid")); _vm->changeToCard(*_vm->matchVarToString("returncardid")); } void RivenExternal::xatrapbookclose(uint16 argc, uint16 *argv) { // Close the trap book - _vm->_hotspots[1].enabled = false; - _vm->_hotspots[2].enabled = false; - _vm->_hotspots[3].enabled = false; - _vm->_hotspots[4].enabled = true; - _vm->_gfx->drawPLST(3); - _vm->_gfx->updateScreen(); + *_vm->matchVarToString("atrap") = 0; + _vm->changeToCard(); // Refresh } void RivenExternal::xatrapbookopen(uint16 argc, uint16 *argv) { // Open the trap book - _vm->_hotspots[1].enabled = true; - _vm->_hotspots[2].enabled = true; - _vm->_hotspots[3].enabled = true; - _vm->_hotspots[4].enabled = false; - _vm->_gfx->drawPLST(1); - // TODO: Play movie - _vm->_gfx->updateScreen(); + *_vm->matchVarToString("atrap") = 1; + _vm->changeToCard(); // Refresh } void RivenExternal::xarestoregame(uint16 argc, uint16 *argv) { |