From 4102935c5b9ef122f14e1ef90c900d24728dbef9 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Sun, 16 May 2004 18:44:54 +0000 Subject: [PATCH] - collision fix SVN-Revision: 1221 --- src/badguy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.11.0