summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-22 12:47:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-22 12:47:16 +0300
commitce1d5543c64be5c101908c20768ecb448737f2d0 (patch)
tree6b8625483ad66e68b39a264fd92c5cce7b4aaf95
parent459c2c3a6decbd5576760040f566f1544645c3ac (diff)
downloadmanaverse-ce1d5543c64be5c101908c20768ecb448737f2d0.tar.gz
manaverse-ce1d5543c64be5c101908c20768ecb448737f2d0.tar.bz2
manaverse-ce1d5543c64be5c101908c20768ecb448737f2d0.tar.xz
manaverse-ce1d5543c64be5c101908c20768ecb448737f2d0.zip
Possible fix for random incorrect beings draw order.
-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;