From: Tobias Markus Date: Sun, 13 Oct 2013 20:31:53 +0000 (+0200) Subject: Move falling badguys to LAYER_FALLING (= 500), fixes bug 1033 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fbcb768105ef33a4f644a6c7b8aff3d6d9ad0ef8;p=supertux.git Move falling badguys to LAYER_FALLING (= 500), fixes bug 1033 --- 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();