From: Ricardo Cruz Date: Fri, 22 Oct 2004 22:50:10 +0000 (+0000) Subject: Bugfix: dying variable was not being initialized, thus resulting in those zombie... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=30b78211e6d6e33e06b6db28e43b9428945d6e28;p=supertux.git Bugfix: dying variable was not being initialized, thus resulting in those zombie badguys. SVN-Revision: 2051 --- 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;