From 7b31585e39ffc7afa5a9269aa4b5f659b0b056c3 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Tue, 2 Jun 2009 06:19:41 +0000 Subject: LOL: - fixed script bug reported by LordHoto svn-id: r41122 --- engines/kyra/script_lol.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp index 7ffdabc850..1b06c5af5b 100644 --- a/engines/kyra/script_lol.cpp +++ b/engines/kyra/script_lol.cpp @@ -1499,6 +1499,14 @@ int LoLEngine::olol_objectLeavesLevel(EMCState *script) { int includeMonsters = stackPos(3); int includeItems = stackPos(5); + // WORKAROUND for script bug + // Items would vanish when thrown towards the stairs + // in white tower level 3. + if (_currentLevel == 21 && level == 21 && block == 0x3e0) { + level = 20; + block = 0x0247; + } + while (o) { int l = o; o = findObject(o)->nextAssignedObject; -- cgit v1.2.3