From: Ryan Flegel Date: Tue, 8 Jun 2004 20:31:24 +0000 (+0000) Subject: - draw dead badguys/Tux above foreground tiles X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7cb27f3640a0d3d29aa7b0bed9b1a9fddf338355;p=supertux.git - draw dead badguys/Tux above foreground tiles SVN-Revision: 1444 --- diff --git a/src/badguy.cpp b/src/badguy.cpp index 6d1015dfd..29d27dc4c 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -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); diff --git a/src/player.cpp b/src/player.cpp index ce9887189..f326f0876 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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 {