diff options
author | Walter van Niftrik | 2018-12-27 12:56:47 +0100 |
---|---|---|
committer | Walter van Niftrik | 2018-12-27 12:56:47 +0100 |
commit | 52c66f5efdc236fde511431595ee3e44a4415b12 (patch) | |
tree | 7a6ddbf81c6e5a719854451698603ce726b7e87e /engines/adl/adl_v3.cpp | |
parent | 76a0c20481bd68d60d8347fd922a74b292421d51 (diff) | |
download | scummvm-rg350-52c66f5efdc236fde511431595ee3e44a4415b12.tar.gz scummvm-rg350-52c66f5efdc236fde511431595ee3e44a4415b12.tar.bz2 scummvm-rg350-52c66f5efdc236fde511431595ee3e44a4415b12.zip |
Revert "ADL: Refactor opcode tables"
This reverts commit 76a0c20481bd68d60d8347fd922a74b292421d51.
Diffstat (limited to 'engines/adl/adl_v3.cpp')
-rw-r--r-- | engines/adl/adl_v3.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/adl/adl_v3.cpp b/engines/adl/adl_v3.cpp index f68a81916c..46af211695 100644 --- a/engines/adl/adl_v3.cpp +++ b/engines/adl/adl_v3.cpp @@ -56,10 +56,12 @@ void AdlEngine_v3::loadItemDescriptions(Common::SeekableReadStream &stream, byte error("Error loading item descriptions"); } +typedef Common::Functor1Mem<ScriptEnv &, int, AdlEngine_v3> OpcodeV3; + void AdlEngine_v3::setupOpcodeTables() { AdlEngine_v2::setupOpcodeTables(); delete _condOpcodes[0x04]; - _condOpcodes[0x04] = opcode(o3_isNounNotInRoom); + _condOpcodes[0x04] = new OpcodeV3(this, &AdlEngine_v3::o3_isNounNotInRoom); } int AdlEngine_v3::o3_isNounNotInRoom(ScriptEnv &e) { |