From e218b2d4ee9c38b522a8b163944feac0a5f63dca Mon Sep 17 00:00:00 2001 From: LMH Date: Wed, 25 Sep 2013 10:33:05 -1000 Subject: [PATCH] Changed the draw layer of coins from LAYER_TILES to LAYER_OBJECTS - 1 (slightly behind other objects such as badguys) --- src/object/coin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/object/coin.cpp b/src/object/coin.cpp index 58aca7667..d3cc16398 100644 --- a/src/object/coin.cpp +++ b/src/object/coin.cpp @@ -26,7 +26,7 @@ #include "supertux/sector.hpp" Coin::Coin(const Vector& pos) - : MovingSprite(pos, "images/objects/coin/coin.sprite", LAYER_TILES, COLGROUP_TOUCHABLE), + : MovingSprite(pos, "images/objects/coin/coin.sprite", LAYER_OBJECTS - 1, COLGROUP_TOUCHABLE), path(), walker(), offset(), @@ -37,7 +37,7 @@ Coin::Coin(const Vector& pos) } Coin::Coin(const Vector& pos, TileMap* tilemap) - : MovingSprite(pos, "images/objects/coin/coin.sprite", LAYER_TILES, COLGROUP_TOUCHABLE), + : MovingSprite(pos, "images/objects/coin/coin.sprite", LAYER_OBJECTS - 1, COLGROUP_TOUCHABLE), path(boost::shared_ptr(tilemap->get_path())), walker(boost::shared_ptr(tilemap->get_walker())), offset(), @@ -53,7 +53,7 @@ Coin::Coin(const Vector& pos, TileMap* tilemap) } Coin::Coin(const Reader& reader) - : MovingSprite(reader, "images/objects/coin/coin.sprite", LAYER_TILES, COLGROUP_TOUCHABLE), + : MovingSprite(reader, "images/objects/coin/coin.sprite", LAYER_OBJECTS - 1, COLGROUP_TOUCHABLE), path(), walker(), offset(), -- 2.11.0