merge
authorkoda
Thu, 24 Mar 2011 17:29:10 +0100
changeset 5047 6afc64bec952
parent 5046 fc6639d56799 (current diff)
parent 5044 6e8da75e5f5e (diff)
child 5048 8e0b459725ff
merge
--- a/hedgewars/GSHandlers.inc	Thu Mar 24 17:28:36 2011 +0100
+++ b/hedgewars/GSHandlers.inc	Thu Mar 24 17:29:10 2011 +0100
@@ -3752,6 +3752,8 @@
             continue;
 
         //Will if fit through?
+        //set r to be portal distance
+        r := Int2hwFloat(Gear^.Radius +1);
 
         o_x := hwRound(conPortal^.X + conPortal^.dX);
         o_y := hwRound(conPortal^.Y + conPortal^.dY);
@@ -3801,6 +3803,9 @@
         if ((Land[o_y, rr_x] and $FF00) <> 0) then
                 continue;
 
+        //Okay reset r in case something uses it
+        r := Int2hwFloat(iterator^.Radius+Gear^.Radius);
+
         hasdxy := (((iterator^.dX.QWordValue <> 0) or (iterator^.dY.QWordValue <> 0))
                     or ((iterator^.State or gstMoving) = 0));