aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFlorian Kagerer2009-09-13 11:04:52 +0000
committerFlorian Kagerer2009-09-13 11:04:52 +0000
commit6d24808bc2ae903d291e7005e0604f07896e4bd1 (patch)
treea2f5a03ab8998328d5425416c998cb3955c501c1 /engines
parentbcc840c95c6f5f4ec62523cd007ea415e474c6d8 (diff)
downloadscummvm-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.h1
-rw-r--r--engines/kyra/script_lol.cpp8
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);