From: Ryan Flegel Date: Sun, 16 May 2004 18:44:54 +0000 (+0000) Subject: - collision fix X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4102935c5b9ef122f14e1ef90c900d24728dbef9;p=supertux.git - collision fix SVN-Revision: 1221 --- diff --git a/src/badguy.cpp b/src/badguy.cpp index 9fd6ccc8a..d2fe17db8 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -1095,7 +1095,8 @@ BadGuy::collision(void *p_c_object, int c_object, CollisionType type) physic.set_velocity_x(fabsf(physic.get_velocity_x())); // in case badguys get "jammed" - base.x = pbad_c->base.x + pbad_c->base.width; + if (physic.get_velocity_x() != 0) + base.x = pbad_c->base.x + pbad_c->base.width; } else if (dir == RIGHT) {