we had it with you intolerant portals\!
authorsheepluva
Mon, 01 Nov 2010 03:05:44 +0100
changeset 4076 7ca17cb94992
parent 4075 f7412772f85d
child 4077 e7d838d063a4
child 4078 da01196fb5ab
we had it with you intolerant portals\!
hedgewars/GSHandlers.inc
--- 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);