Skip to content

Commit

Permalink
Changed the draw layer of coins from LAYER_TILES to LAYER_OBJECTS - 1…
Browse files Browse the repository at this point in the history
… (slightly behind other objects such as badguys)
  • Loading branch information
LMH0013 committed Sep 25, 2013
1 parent b8e060b commit 194b778
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/object/coin.cpp
Expand Up @@ -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(),
Expand All @@ -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<Path>(tilemap->get_path())),
walker(boost::shared_ptr<PathWalker>(tilemap->get_walker())),
offset(),
Expand All @@ -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(),
Expand Down

0 comments on commit 194b778

Please sign in to comment.