[Scummvm-git-logs] scummvm branch-2-7 -> da4ba2a5fa9c255b121fed7d456af0b4283bd9fa

mgerhardy noreply at scummvm.org
Sat Jan 21 14:23:20 UTC 2023


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:
da4ba2a5fa TWINE: fixed bug #13871 (rendering error with opened door)


Commit: da4ba2a5fa9c255b121fed7d456af0b4283bd9fa
    https://github.com/scummvm/scummvm/commit/da4ba2a5fa9c255b121fed7d456af0b4283bd9fa
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2023-01-21T15:23:09+01:00

Commit Message:
TWINE: fixed bug #13871 (rendering error with opened door)

https://bugs.scummvm.org/ticket/13871

the z level correction was done, but the sorting did not take the corrected
depth values into account

Changed paths:
    engines/twine/renderer/redraw.cpp


diff --git a/engines/twine/renderer/redraw.cpp b/engines/twine/renderer/redraw.cpp
index 24989f52932..5d55755a36a 100644
--- a/engines/twine/renderer/redraw.cpp
+++ b/engines/twine/renderer/redraw.cpp
@@ -836,10 +836,10 @@ void Redraw::redrawEngineActions(bool bgRedraw) { // AffScene
 	DrawListStruct drawList[NUM_MAX_ACTORS + EXTRA_MAX_ENTRIES]; // ListTri[MAX_OBJECTS + MAX_EXTRAS]
 	int32 drawListPos = fillActorDrawingList(drawList, bgRedraw);
 	drawListPos = fillExtraDrawingList(drawList, drawListPos);
-	sortDrawingList(drawList, drawListPos);
 
 	_currNumOfRedrawBox = 0;
 	correctZLevels(drawList, drawListPos);
+	sortDrawingList(drawList, drawListPos);
 	processDrawList(drawList, drawListPos, bgRedraw);
 
 	if (_engine->_cfgfile.Debug) {




More information about the Scummvm-git-logs mailing list