diff options
author | Florian Kagerer | 2009-09-13 11:04:52 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-09-13 11:04:52 +0000 |
commit | 6d24808bc2ae903d291e7005e0604f07896e4bd1 (patch) | |
tree | a2f5a03ab8998328d5425416c998cb3955c501c1 /engines | |
parent | bcc840c95c6f5f4ec62523cd007ea415e474c6d8 (diff) | |
download | scummvm-rg350-6d24808bc2ae903d291e7005e0604f07896e4bd1.tar.gz scummvm-rg350-6d24808bc2ae903d291e7005e0604f07896e4bd1.tar.bz2 scummvm-rg350-6d24808bc2ae903d291e7005e0604f07896e4bd1.zip |
LOL: add missing opcode
svn-id: r44053
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/lol.h | 1 | ||||
-rw-r--r-- | engines/kyra/script_lol.cpp | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/kyra/lol.h b/engines/kyra/lol.h index dc90879718..a3fb93b4a8 100644 --- a/engines/kyra/lol.h +++ b/engines/kyra/lol.h @@ -739,6 +739,7 @@ private: int olol_drawExitButton(EMCState *script); int olol_loadSoundFile(EMCState *script); int olol_playMusicTrack(EMCState *script); + int olol_deleteMonstersFromBlock(EMCState *script); int olol_countBlockItems(EMCState *script); int olol_characterSkillTest(EMCState *script); int olol_countAllMonsters(EMCState *script); diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp index b6fcc6cf48..95e7a18c5d 100644 --- a/engines/kyra/script_lol.cpp +++ b/engines/kyra/script_lol.cpp @@ -1353,6 +1353,12 @@ int LoLEngine::olol_playMusicTrack(EMCState *script) { return snd_playTrack(stackPos(0)); } +int LoLEngine::olol_deleteMonstersFromBlock(EMCState *script) { + debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_deleteMonstersFromBlock(%p) (%d)", (const void *)script, stackPos(0)); + deleteMonstersFromBlock(stackPos(0)); + return 1; +} + int LoLEngine::olol_countBlockItems(EMCState *script) { debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_countBlockItems(%p) (%d)", (const void *)script, stackPos(0)); uint16 o = _levelBlockProperties[stackPos(0)].assignedObjects; @@ -2791,7 +2797,7 @@ void LoLEngine::setupOpcodeTable() { // 0x64 Opcode(olol_playMusicTrack); - OpcodeUnImpl(); + Opcode(olol_deleteMonstersFromBlock); Opcode(olol_countBlockItems); Opcode(olol_characterSkillTest); |