From a38e16b9638aa0d35ec42220ab6825e6925b23b2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 15 Apr 2018 07:43:51 -0400 Subject: [PATCH] XEEN: Fix opening of Ali Baba's chest --- engines/xeen/party.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index 3ee991d77fc3..cbf848935eab 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: