hedgewars/GSHandlers.inc
changeset 4076 7ca17cb94992
parent 4050 8e4f4b72c132
child 4092 bf13068194b3
--- a/hedgewars/GSHandlers.inc	Mon Nov 01 02:47:30 2010 +0100
+++ b/hedgewars/GSHandlers.inc	Mon Nov 01 03:05:44 2010 +0100
@@ -3471,9 +3471,9 @@
         if poffs < _0 then
             continue;
 
-        // don't port stuff that isn't really close;
-        if not isbullet and (poffs > (r + _3)) then
-            continue;
+        //
+        // gears that make it till here will definately be ported
+        //
 
         if isbullet then
             poffs:= _1_5;
@@ -3490,10 +3490,6 @@
         // calc gear offset in portal normal vector direction
         noffs:= (nx * ox + ny * oy);
 
-        // don't port stuff that misses the portal entrance
-        if noffs > (r + _1_5) then
-            continue;
-
         // move stuff with high normal offset close to the portal's center
         if not isbullet then
         begin
@@ -3502,10 +3498,6 @@
                 noffs:= noffs - SignAs(s,noffs)
         end;
 
-        //
-        // gears that make it till here will definately be ported
-        //
-
         iterator^.Active := true;
         iterator^.State := iterator^.State or gstMoving;
         DeleteCI(iterator);