aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/script_lol.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2010-10-30 18:37:15 +0000
committerFlorian Kagerer2010-10-30 18:37:15 +0000
commita04b4e6517adf73d2738e9efdc70e8c5af355e1b (patch)
treea89a0d48f2709fe93fc0d8707b4b37d573242abc /engines/kyra/script_lol.cpp
parent14d8d589e24c64370ed2ba8fb5254066b7ab1d47 (diff)
downloadscummvm-rg350-a04b4e6517adf73d2738e9efdc70e8c5af355e1b.tar.gz
scummvm-rg350-a04b4e6517adf73d2738e9efdc70e8c5af355e1b.tar.bz2
scummvm-rg350-a04b4e6517adf73d2738e9efdc70e8c5af355e1b.zip
LOL: workaround for bug #3098935
(Vaelan's Cube can be duplicated at Scotia's Barrier) This is a bug in the game data of early unpatched floppy versions. This can also be fixed by applying the official patch (ftp://ftp.westwood.com/pub/lands1/updates/lolus123.exe). svn-id: r53954
Diffstat (limited to 'engines/kyra/script_lol.cpp')
-rw-r--r--engines/kyra/script_lol.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp
index 864b6c39c7..33fa16a22c 100644
--- a/engines/kyra/script_lol.cpp
+++ b/engines/kyra/script_lol.cpp
@@ -267,6 +267,12 @@ int LoLEngine::olol_setItemProperty(EMCState *script) {
tmp->nameStringId = stackPos(1);
tmp->shpIndex = stackPos(2);
tmp->type = stackPos(3);
+
+ // WORKAROUND for unpatched early floppy versions.
+ // The Vaelan's cube should not be able to be equipped in a weapon slot.
+ if (stackPos(0) == 264 && tmp->type == 5)
+ tmp->type = 0;
+
tmp->itemScriptFunc = stackPos(4);
tmp->might = stackPos(5);
tmp->skill = stackPos(6);