Player should be drawn above enemies.
authorRicardo Cruz <rick2@aeiou.pt>
Sat, 11 Sep 2004 13:31:37 +0000 (13:31 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sat, 11 Sep 2004 13:31:37 +0000 (13:31 +0000)
SVN-Revision: 1894

src/player.cpp

index 1e047cc..5fec558 100644 (file)
@@ -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()