From 7cb27f3640a0d3d29aa7b0bed9b1a9fddf338355 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Tue, 8 Jun 2004 20:31:24 +0000 Subject: [PATCH] - draw dead badguys/Tux above foreground tiles SVN-Revision: 1444 --- src/badguy.cpp | 2 +- src/player.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.11.0