diff options
author | Walter van Niftrik | 2018-07-25 10:40:30 +0200 |
---|---|---|
committer | Walter van Niftrik | 2018-12-27 12:33:10 +0100 |
commit | 76a0c20481bd68d60d8347fd922a74b292421d51 (patch) | |
tree | e74166628b3ffbbcb3d1cd98a91daefee3e43ac6 /engines/adl/adl_v3.cpp | |
parent | b37a41286099faf4a36e73e69b377022345091e7 (diff) | |
download | scummvm-rg350-76a0c20481bd68d60d8347fd922a74b292421d51.tar.gz scummvm-rg350-76a0c20481bd68d60d8347fd922a74b292421d51.tar.bz2 scummvm-rg350-76a0c20481bd68d60d8347fd922a74b292421d51.zip |
ADL: Refactor opcode tables
Diffstat (limited to 'engines/adl/adl_v3.cpp')
-rw-r--r-- | engines/adl/adl_v3.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/adl/adl_v3.cpp b/engines/adl/adl_v3.cpp index 46af211695..f68a81916c 100644 --- a/engines/adl/adl_v3.cpp +++ b/engines/adl/adl_v3.cpp @@ -56,12 +56,10 @@ 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] = new OpcodeV3(this, &AdlEngine_v3::o3_isNounNotInRoom); + _condOpcodes[0x04] = opcode(o3_isNounNotInRoom); } int AdlEngine_v3::o3_isNounNotInRoom(ScriptEnv &e) { |