From 871516a9697db1914d703f0abb48a2f084452b0c Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 6 Aug 2016 18:07:54 +0200 Subject: MOHAWK: Move the effect list to RivenCard --- engines/mohawk/riven_scripts.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'engines/mohawk/riven_scripts.cpp') 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 -- cgit v1.2.3