diff options
author | Matthew Hoops | 2011-01-24 02:43:07 +0000 |
---|---|---|
committer | Matthew Hoops | 2011-01-24 02:43:07 +0000 |
commit | d6a4ff36392b14afea6da749c2b2f4f14906ed64 (patch) | |
tree | 54d075fc0136f071442fdf10c9f026fc54f27003 /engines/mohawk/riven_scripts.cpp | |
parent | 0f07082a78355b8607bf04dd4e1ba42e14fc636f (diff) | |
download | scummvm-rg350-d6a4ff36392b14afea6da749c2b2f4f14906ed64.tar.gz scummvm-rg350-d6a4ff36392b14afea6da749c2b2f4f14906ed64.tar.bz2 scummvm-rg350-d6a4ff36392b14afea6da749c2b2f4f14906ed64.zip |
MOHAWK: Recheck the current hotspot if a script has changed the enabled hotspots in Riven
svn-id: r55493
Diffstat (limited to 'engines/mohawk/riven_scripts.cpp')
-rw-r--r-- | engines/mohawk/riven_scripts.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp index fcdae70ce5..5d459354e9 100644 --- a/engines/mohawk/riven_scripts.cpp +++ b/engines/mohawk/riven_scripts.cpp @@ -380,6 +380,9 @@ void RivenScript::enableHotspot(uint16 op, uint16 argc, uint16 *argv) { _vm->_hotspots[i].enabled = true; } } + + // Recheck our current hotspot because it may have now changed + _vm->updateCurrentHotspot(); } // Command 10: disable hotspot (blst_id) @@ -390,6 +393,9 @@ void RivenScript::disableHotspot(uint16 op, uint16 argc, uint16 *argv) { _vm->_hotspots[i].enabled = false; } } + + // Recheck our current hotspot because it may have now changed + _vm->updateCurrentHotspot(); } // Command 12: stop sounds (flags) @@ -589,6 +595,9 @@ void RivenScript::activateBLST(uint16 op, uint16 argc, uint16 *argv) { } delete blst; + + // Recheck our current hotspot because it may have now changed + _vm->updateCurrentHotspot(); } // Command 44: activate FLST record (information on which SFXE resource this card should use) |