mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
Fix trap book external commands.
svn-id: r48037
This commit is contained in:
parent
a3a07f19fc
commit
e32497c54c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user