summaryrefslogtreecommitdiff
path: root/src/maplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/maplayer.cpp')
-rw-r--r--src/maplayer.cpp2
1 files changed, 1 insertions, 1 deletions
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;