Don't remove badguys, just because they are out of the screen borders.
authorRicardo Cruz <rick2@aeiou.pt>
Sat, 22 May 2004 18:42:40 +0000 (18:42 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sat, 22 May 2004 18:42:40 +0000 (18:42 +0000)
SVN-Revision: 1299

src/badguy.cpp

index 2e9f0f9..0bd1337 100644 (file)
@@ -758,13 +758,6 @@ BadGuy::action(float elapsed_time)
   float scroll_y = World::current()->displaymanager
     .get_viewport().get_translation().y;
   
-  // Remove if it's far off the screen:
-  if (base.x < scroll_x - X_OFFSCREEN_DISTANCE)
-    {
-      remove_me();                                                
-      return;
-    }
-
   // BadGuy fall below the ground
   if (base.y > World::current()->get_level()->height * 32) {
     remove_me();