aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-15 07:43:51 -0400
committerPaul Gilbert2018-04-15 07:43:51 -0400
commita38e16b9638aa0d35ec42220ab6825e6925b23b2 (patch)
treef2638a73d797f0ecfe3e68475b0cb130992d888d /engines/xeen
parent95741aa3e4d8ca7287949e3c47c7609412399d86 (diff)
downloadscummvm-rg350-a38e16b9638aa0d35ec42220ab6825e6925b23b2.tar.gz
scummvm-rg350-a38e16b9638aa0d35ec42220ab6825e6925b23b2.tar.bz2
scummvm-rg350-a38e16b9638aa0d35ec42220ab6825e6925b23b2.zip
XEEN: Fix opening of Ali Baba's chest
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/party.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 3ee991d77f..cbf848935e 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -1444,7 +1444,9 @@ bool Party::giveExt(int mode1, uint val1, int mode2, uint val2, int mode3, uint
Scripts &scripts = *g_vm->_scripts;
Sound &sound = *g_vm->_sound;
- if (intf._objNumber != -1 && !scripts._animCounter) {
+ // WORKAROUND: Ali Baba's chest in Dark Side requires the character in the first slot to have Lockpicking.
+ // This is obviously a mistake, since the chest is meant to be opened via a password
+ if (intf._objNumber != -1 && !scripts._animCounter && !(files._ccNum && _mazeId == 63 && intf._objNumber == 15)) {
MazeObject &obj = map._mobData._objects[intf._objNumber];
switch (obj._spriteId) {
case 15: