From: Ricardo Cruz Date: Sat, 22 May 2004 18:42:40 +0000 (+0000) Subject: Don't remove badguys, just because they are out of the screen borders. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=10f90f3f6687362ef763f8fecbc8d263f5a23c4b;p=supertux.git Don't remove badguys, just because they are out of the screen borders. SVN-Revision: 1299 --- diff --git a/src/badguy.cpp b/src/badguy.cpp index 2e9f0f998..0bd133741 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -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();