From: LMH Date: Wed, 25 Sep 2013 20:33:05 +0000 (-1000) Subject: Changed the draw layer of coins from LAYER_TILES to LAYER_OBJECTS - 1 (slightly behin... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e218b2d4ee9c38b522a8b163944feac0a5f63dca;p=supertux.git Changed the draw layer of coins from LAYER_TILES to LAYER_OBJECTS - 1 (slightly behind other objects such as badguys) --- 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(),