- draw dead badguys/Tux above foreground tiles
authorRyan Flegel <rflegel@gmail.com>
Tue, 8 Jun 2004 20:31:24 +0000 (20:31 +0000)
committerRyan Flegel <rflegel@gmail.com>
Tue, 8 Jun 2004 20:31:24 +0000 (20:31 +0000)
SVN-Revision: 1444

src/badguy.cpp
src/player.cpp

index 6d1015d..29d27dc 100644 (file)
@@ -970,7 +970,7 @@ BadGuy::draw(DrawingContext& context)
     return;
 
   if(dying == DYING_FALLING && physic.get_velocity_y() < 0)
-    sprite->draw(context, Vector(base.x, base.y), LAYER_OBJECTS, VERTICAL_FLIP);
+    sprite->draw(context, Vector(base.x, base.y), LAYER_FOREGROUNDTILES+1, VERTICAL_FLIP);
   else
     sprite->draw(context, Vector(base.x, base.y), LAYER_OBJECTS);
 
index ce98871..f326f08 100644 (file)
@@ -705,7 +705,7 @@ Player::draw(DrawingContext& context)
     {
       if (dying == DYING_SQUISHED)
         {
-          smalltux_gameover->draw(context, pos, LAYER_OBJECTS+1);
+          smalltux_gameover->draw(context, pos, LAYER_FOREGROUNDTILES+1);
         }
       else
         {