From ce1d5543c64be5c101908c20768ecb448737f2d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Nov 2012 12:47:16 +0300 Subject: Possible fix for random incorrect beings draw order. --- src/maplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/maplayer.cpp') diff --git a/src/maplayer.cpp b/src/maplayer.cpp index 8980b4f47..84acb91fd 100644 --- a/src/maplayer.cpp +++ b/src/maplayer.cpp @@ -380,7 +380,7 @@ void MapLayer::drawFringe(Graphics *const graphics, int startX, int startY, // If drawing the fringe layer, make sure all actors above this row of // tiles have been drawn - while (ai != ai_end && (*ai)->getPixelY() <= y32s) + while (ai != ai_end && (*ai)->getSortPixelY() <= y32s) { (*ai)->draw(graphics, -scrollX, -scrollY); ++ ai; -- cgit v1.2.3-60-g2f50