From: Ricardo Cruz Date: Tue, 27 Apr 2004 21:00:58 +0000 (+0000) Subject: Matze made eggs not to be removed at all during a level saying that they shouldn... X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=d480b3548881298e8c96f37ef2c95c95a4c1a46d;p=supertux.git Matze made eggs not to be removed at all during a level saying that they shouldn't be destroyed when off the screen. The fact is that OFFSCREEN_DISTANCE is already pretty generous, but if you don't think so, just increase it. SVN-Revision: 794 --- diff --git a/src/special.cpp b/src/special.cpp index 064ab6341..71a2e5e8a 100644 --- a/src/special.cpp +++ b/src/special.cpp @@ -193,13 +193,10 @@ Upgrade::action(double frame_ratio) } } - /* Off screen? Kill it! */ + /* Away from the screen? Kill it! */ if(base.x < scroll_x - OFFSCREEN_DISTANCE) { - // we don't remove growups for now, when off screen - if(kind != UPGRADE_GROWUP) { remove_me(); return; - } } if(base.y > screen->h) { remove_me();