Bugfix: dying variable was not being initialized, thus resulting in those zombie...
authorRicardo Cruz <rick2@aeiou.pt>
Fri, 22 Oct 2004 22:50:10 +0000 (22:50 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Fri, 22 Oct 2004 22:50:10 +0000 (22:50 +0000)
SVN-Revision: 2051

src/badguy.cpp

index d26dc2a..5e496ec 100644 (file)
@@ -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;