aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);