aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorathrxx2018-11-02 02:02:11 +0100
committerathrxx2018-11-02 13:08:39 +0100
commit016b251799c3d181fa8e0b3d23a1f2e42967e59f (patch)
tree74b4e632a41e50df3280482d49cf1aa5b5f837bf /engines
parentb749116cbe1f710caa6fa225eef49af33e769e79 (diff)
downloadscummvm-rg350-016b251799c3d181fa8e0b3d23a1f2e42967e59f.tar.gz
scummvm-rg350-016b251799c3d181fa8e0b3d23a1f2e42967e59f.tar.bz2
scummvm-rg350-016b251799c3d181fa8e0b3d23a1f2e42967e59f.zip
KYRA: - fix EOB II graphics glitch
Catacombs level 3 doors were not drawn completely.
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/darkmoon.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/darkmoon.cpp b/engines/kyra/darkmoon.cpp
index 71ae98e4db..e15a290f86 100644
--- a/engines/kyra/darkmoon.cpp
+++ b/engines/kyra/darkmoon.cpp
@@ -339,6 +339,12 @@ void DarkMoonEngine::drawDoorIntern(int type, int, int x, int y, int w, int wall
drawBlockObject(0, 2, shp, x, y, 5);
+ if (_doorType[type] == 2) {
+ shp = _doorShapes[shapeIndex + 3];
+ y = _dscDoorFrameY2[mDim] - shp[1] + (((wall - _dscDoorScaleOffs[wall]) * _dscDoorScaleMult3[mDim]) >> 1) - 1;
+ drawBlockObject(0, 2, shp, x, y, 5);
+ }
+
if (_wllShapeMap[wall] == -1 && !_noDoorSwitch[type])
drawBlockObject(0, 2, _doorSwitches[shapeIndex].shp, _doorSwitches[shapeIndex].x + w, _doorSwitches[shapeIndex].y, 5);
}