diff options
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp index f95284b4..ac287be4 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -325,7 +325,7 @@ void Map::addTileset(Tileset *tileset) bool actorCompare(const Actor *a, const Actor *b) { - return a->getPixelY() < b->getPixelY(); + return a->getDrawOrder() < b->getDrawOrder(); } void Map::update(int ticks) @@ -403,7 +403,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) if (Actor *actor = *ai) { // For now, just draw actors with only one layer. - if (actor->getNumberOfLayers() == 1) + if (actor->drawnWhenBehind()) { actor->setAlpha(0.3f); actor->draw(graphics, -scrollX, -scrollY); |