summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 37b7292a..28c52192 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -118,7 +118,7 @@ Map::draw(Graphics *graphics, int scrollX, int scrollY, int layer)
// tiles have been drawn
if (layer == 1)
{
- while (si != mSprites.end() && (*si)->getPixelY() <= y * 32 - 32)
+ while (si != mSprites.end() && (*si)->getPixelY() < y * 32)
{
(*si)->draw(graphics, -scrollX, -scrollY);
si++;