From 8c10335c1daacc0ae9985d3502f13679a230ace2 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Sun, 13 Oct 2013 22:31:53 +0200 Subject: [PATCH] Move falling badguys to LAYER_FALLING (= 500), fixes bug 1033 --- src/badguy/badguy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/badguy/badguy.cpp b/src/badguy/badguy.cpp index 51b701aa7..4d3c57247 100644 --- a/src/badguy/badguy.cpp +++ b/src/badguy/badguy.cpp @@ -31,6 +31,7 @@ static const float SQUISH_TIME = 2; static const float X_OFFSCREEN_DISTANCE = 1280; static const float Y_OFFSCREEN_DISTANCE = 800; +static const int LAYER_FALLING = 500; BadGuy::BadGuy(const Vector& pos, const std::string& sprite_name, int layer) : MovingSprite(pos, sprite_name, layer, COLGROUP_DISABLED), @@ -394,6 +395,7 @@ BadGuy::kill_fall() physic.set_acceleration_y(0); physic.enable_gravity(true); set_state(STATE_FALLING); + layer = LAYER_FALLING; // start dead-script run_dead_script(); -- 2.11.0