diff options
author | Matthew Hoops | 2010-02-26 08:14:33 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-02-26 08:14:33 +0000 |
commit | e8c2c2b25c12b2e303643bc6ea1f168922d77e40 (patch) | |
tree | a79546187d04d1841ee0482b0717fd365010db93 /engines/mohawk/riven_scripts.cpp | |
parent | 08d3c24c12953c0c99286dac94486507f8deae6d (diff) | |
download | scummvm-rg350-e8c2c2b25c12b2e303643bc6ea1f168922d77e40.tar.gz scummvm-rg350-e8c2c2b25c12b2e303643bc6ea1f168922d77e40.tar.bz2 scummvm-rg350-e8c2c2b25c12b2e303643bc6ea1f168922d77e40.zip |
Slightly rework refreshing cards in Riven (and remove the hackish changeToCard(0)).
svn-id: r48134
Diffstat (limited to 'engines/mohawk/riven_scripts.cpp')
-rw-r--r-- | engines/mohawk/riven_scripts.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp index 7e3d4f77da..911ee16028 100644 --- a/engines/mohawk/riven_scripts.cpp +++ b/engines/mohawk/riven_scripts.cpp @@ -417,17 +417,16 @@ void RivenScript::runExternalCommand(uint16 op, uint16 argc, uint16 *argv) { // Parameter 0: transition type // Parameters 1-4: transition rectangle void RivenScript::transition(uint16 op, uint16 argc, uint16 *argv) { - if (argc == 1) { + if (argc == 1) _vm->_gfx->scheduleTransition(argv[0]); - } else { + else _vm->_gfx->scheduleTransition(argv[0], Common::Rect(argv[1], argv[2], argv[3], argv[4])); - } } // Command 19: reload card void RivenScript::refreshCard(uint16 op, uint16 argc, uint16 *argv) { - debug(2, "Reloading card"); - _vm->changeToCard(); + debug(2, "Refreshing card"); + _vm->refreshCard(); } // Command 20: disable screen update |