aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorathrxx2013-04-22 20:31:03 +0200
committerathrxx2013-04-22 21:23:25 +0200
commit3e1ccff79d0e3615f662a8d9fa1e9343d748ee89 (patch)
tree0ddebd2bd1bb1629d1e5641f9b4e589e72062ef9 /engines
parentcdff19324cbd91f0b08cd565486a607fea877cf0 (diff)
downloadscummvm-rg350-3e1ccff79d0e3615f662a8d9fa1e9343d748ee89.tar.gz
scummvm-rg350-3e1ccff79d0e3615f662a8d9fa1e9343d748ee89.tar.bz2
scummvm-rg350-3e1ccff79d0e3615f662a8d9fa1e9343d748ee89.zip
KYRA: (EOB) - minor fix to door opening/closing in EOB1
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/scene_rpg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/scene_rpg.cpp b/engines/kyra/scene_rpg.cpp
index 6d724efed0..927d891a5f 100644
--- a/engines/kyra/scene_rpg.cpp
+++ b/engines/kyra/scene_rpg.cpp
@@ -563,9 +563,9 @@ void KyraRpgEngine::openCloseDoor(int block, int openClose) {
int c = (_wllWallFlags[_levelBlockProperties[block].walls[0]] & 8) ? 0 : 1;
int v = _levelBlockProperties[block].walls[c];
- int flg = (openClose == 1) ? 0x10 : (openClose == -1 ? 0x20 : 0);
+ int flg = (_flags.gameID == GI_EOB1) ? 1 : ((openClose == 1) ? 0x10 : (openClose == -1 ? 0x20 : 0));
- if (_wllWallFlags[v] & flg)
+ if ((_flags.gameID == GI_EOB1 && openClose == -1 && !(_wllWallFlags[v] & flg)) || (!(_flags.gameID == GI_EOB1 && openClose == -1) && (_wllWallFlags[v] & flg)))
return;
for (int i = 0; i < 3; i++) {