From: Ricardo Cruz Date: Sat, 11 Sep 2004 13:31:37 +0000 (+0000) Subject: Player should be drawn above enemies. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e11dcdfa6b7d96131aa1c13327193d7296ec38ec;p=supertux.git Player should be drawn above enemies. SVN-Revision: 1894 --- diff --git a/src/player.cpp b/src/player.cpp index 1e047cc6d..5fec5587a 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -116,13 +116,13 @@ TuxBodyParts::draw(DrawingContext& context, const Vector& pos, int layer, Uint32 drawing_effect) { if(head != NULL) - head->draw(context, pos, layer+2, drawing_effect); + head->draw(context, pos, layer-1, drawing_effect); if(body != NULL) - body->draw(context, pos, layer, drawing_effect); + body->draw(context, pos, layer-3, drawing_effect); if(arms != NULL) - arms->draw(context, pos, layer+3, drawing_effect); + arms->draw(context, pos, layer, drawing_effect); if(feet != NULL) - feet->draw(context, pos, layer+1, drawing_effect); + feet->draw(context, pos, layer-2, drawing_effect); } Player::Player()