[Scummvm-git-logs] scummvm master -> 016b251799c3d181fa8e0b3d23a1f2e42967e59f

athrxx athrxx at scummvm.org
Fri Nov 2 15:33:00 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
016b251799 KYRA: - fix EOB II graphics glitch


Commit: 016b251799c3d181fa8e0b3d23a1f2e42967e59f
    https://github.com/scummvm/scummvm/commit/016b251799c3d181fa8e0b3d23a1f2e42967e59f
Author: athrxx (athrxx at scummvm.org)
Date: 2018-11-02T13:08:39+01:00

Commit Message:
KYRA: - fix EOB II graphics glitch

Catacombs level 3 doors were not drawn completely.

Changed paths:
    engines/kyra/darkmoon.cpp


diff --git a/engines/kyra/darkmoon.cpp b/engines/kyra/darkmoon.cpp
index 71ae98e..e15a290 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);
 }





More information about the Scummvm-git-logs mailing list