hedgewars/uGearsHedgehog.pas
changeset 13771 9fdb13633bcb
parent 13758 885404cdf07a
child 13797 5d46b4fae757
--- a/hedgewars/uGearsHedgehog.pas	Wed Sep 05 01:53:21 2018 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Wed Sep 05 18:07:56 2018 +0200
@@ -910,7 +910,7 @@
         end;
 
     if (Gear^.Message and (gmLeft or gmRight) <> 0) and (Gear^.State and gstMoving = 0) and 
-		(CheckGearNear(Gear, gtPortal, 26, 26) <> nil) then 
+		(CheckGearNear(Gear, gtPortal, 26, 26) = nil) then
 		Gear^.PortalCounter:= 0;
     PrevdX:= hwSign(Gear^.dX);
     if (Gear^.Message and gmLeft  )<>0 then