From 30b78211e6d6e33e06b6db28e43b9428945d6e28 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Fri, 22 Oct 2004 22:50:10 +0000 Subject: [PATCH] Bugfix: dying variable was not being initialized, thus resulting in those zombie badguys. SVN-Revision: 2051 --- src/badguy.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/badguy.cpp b/src/badguy.cpp index d26dc2a3f..5e496ec4a 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -210,6 +210,7 @@ BadGuy::activate(Direction activation_dir) frozen_timer.init(true); timer.init(true); + dying = DYING_NOT; seen = true; dir = activation_dir; @@ -904,7 +905,7 @@ BadGuy::action(float elapsed_time) if(!seen) return; - + switch (kind) { case BAD_MRICEBLOCK: @@ -1226,9 +1227,6 @@ BadGuy::collision(const MovingObject&, int) void BadGuy::collision(void *p_c_object, int c_object, CollisionType type) { - if(!seen) - return; - BadGuy* pbad_c = NULL; Bullet* pbullet_c = NULL; -- 2.11.0