diff options
author | Bastien Bouclet | 2016-08-06 18:07:54 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 871516a9697db1914d703f0abb48a2f084452b0c (patch) | |
tree | 7fc231c0421ceeddcfd416e83710c0bec27ccb9c /engines/mohawk/riven_scripts.cpp | |
parent | c1e0b8684b5d89fc5c10088a3222a8760e3b4ade (diff) | |
download | scummvm-rg350-871516a9697db1914d703f0abb48a2f084452b0c.tar.gz scummvm-rg350-871516a9697db1914d703f0abb48a2f084452b0c.tar.bz2 scummvm-rg350-871516a9697db1914d703f0abb48a2f084452b0c.zip |
MOHAWK: Move the effect list to RivenCard
Diffstat (limited to 'engines/mohawk/riven_scripts.cpp')
-rw-r--r-- | engines/mohawk/riven_scripts.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp index 2f3780d5c2..e951043aa5 100644 --- a/engines/mohawk/riven_scripts.cpp +++ b/engines/mohawk/riven_scripts.cpp @@ -596,23 +596,7 @@ void RivenSimpleCommand::activateBLST(uint16 op, uint16 argc, uint16 *argv) { // Command 44: activate FLST record (information on which SFXE resource this card should use) void RivenSimpleCommand::activateFLST(uint16 op, uint16 argc, uint16 *argv) { - Common::SeekableReadStream* flst = _vm->getResource(ID_FLST, _vm->getCurCard()->getId()); - uint16 recordCount = flst->readUint16BE(); - - for (uint16 i = 0; i < recordCount; i++) { - uint16 index = flst->readUint16BE(); - uint16 sfxeID = flst->readUint16BE(); - - if (flst->readUint16BE() != 0) - warning("FLST u0 non-zero"); - - if (index == argv[0]) { - _vm->_gfx->scheduleWaterEffect(sfxeID); - break; - } - } - - delete flst; + _vm->getCurCard()->activateWaterEffect(argv[0]); } // Command 45: do zip mode |