diff options
author | Walter van Niftrik | 2016-12-11 16:45:54 +0100 |
---|---|---|
committer | Walter van Niftrik | 2016-12-11 16:51:14 +0100 |
commit | 64ff20acbc24b859ff2c66d0f58be900d302ca43 (patch) | |
tree | 32ea358dea23eae70bc6bea7b1969b1fc4a1a901 /engines/adl/adl_v3.cpp | |
parent | 0b6b5a34b0a9dec0bf71b877e552bbf9f2fa1245 (diff) | |
download | scummvm-rg350-64ff20acbc24b859ff2c66d0f58be900d302ca43.tar.gz scummvm-rg350-64ff20acbc24b859ff2c66d0f58be900d302ca43.tar.bz2 scummvm-rg350-64ff20acbc24b859ff2c66d0f58be900d302ca43.zip |
ADL: Unify inventory opcodes
Diffstat (limited to 'engines/adl/adl_v3.cpp')
-rw-r--r-- | engines/adl/adl_v3.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/engines/adl/adl_v3.cpp b/engines/adl/adl_v3.cpp index ba9e4a063e..46af211695 100644 --- a/engines/adl/adl_v3.cpp +++ b/engines/adl/adl_v3.cpp @@ -62,8 +62,6 @@ void AdlEngine_v3::setupOpcodeTables() { AdlEngine_v2::setupOpcodeTables(); delete _condOpcodes[0x04]; _condOpcodes[0x04] = new OpcodeV3(this, &AdlEngine_v3::o3_isNounNotInRoom); - delete _actOpcodes[0x04]; - _actOpcodes[0x04] = new OpcodeV3(this, &AdlEngine_v3::o3_listInv); } int AdlEngine_v3::o3_isNounNotInRoom(ScriptEnv &e) { @@ -85,16 +83,4 @@ int AdlEngine_v3::o3_isNounNotInRoom(ScriptEnv &e) { return (isAnItem ? 1 : -1); } -int AdlEngine_v3::o3_listInv(ScriptEnv &e) { - OP_DEBUG_0("\tLIST_INVENTORY()"); - - Common::List<Item>::const_iterator item; - - for (item = _state.items.begin(); item != _state.items.end(); ++item) - if (item->room == IDI_ANY) - printString(_itemDesc[item->description - 1]); - - return 0; -} - } // End of namespace Adl |