From: Ricardo Cruz Date: Fri, 10 Sep 2004 08:55:49 +0000 (+0000) Subject: Give different layers to different body parts. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a264d1d85e1c49eec8f34921e7e508cdb5ddaf43;p=supertux.git Give different layers to different body parts. Bugfix: head not shown when ducking. SVN-Revision: 1893 --- diff --git a/src/player.cpp b/src/player.cpp index 713f6c9e9..1e047cc6d 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, drawing_effect); + head->draw(context, pos, layer+2, drawing_effect); if(body != NULL) - body->draw(context, pos, layer, drawing_effect); + body->draw(context, pos, layer, drawing_effect); if(arms != NULL) - arms->draw(context, pos, layer, drawing_effect); + arms->draw(context, pos, layer+3, drawing_effect); if(feet != NULL) - feet->draw(context, pos, layer, drawing_effect); + feet->draw(context, pos, layer+1, drawing_effect); } Player::Player()