hedgewars/uGearsHandlersMess.pas
changeset 13979 4d0c80f7aa32
parent 13961 2568fa516733
child 13980 350adfa0e896
--- a/hedgewars/uGearsHandlersMess.pas	Thu Oct 25 23:39:54 2018 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Thu Oct 25 23:46:31 2018 +0200
@@ -6332,7 +6332,7 @@
         HedgehogChAngle(HHGear);
         ndX:= SignAs(AngleSin(HHGear^.Angle), HHGear^.dX) * _4;
         ndY:= -AngleCos(HHGear^.Angle) * _4;
-        if (ndX <> dX) or (ndY <> dY) or
+        if (ndX <> dX) or (ndY <> dY) or (Gear^.Message and (gmUp or gmDown) <> 0) or
            (((Target.X <> NoPointX) and (Target.X and LAND_WIDTH_MASK = 0) and
              (Target.Y and LAND_HEIGHT_MASK = 0) and ((Land[Target.Y, Target.X] = 0)) and
              (not CheckCoordInWater(Target.X, Target.Y))) and (CheckGearNear(gtAirMine, int2hwFloat(Target.X),int2hwFloat(Target.Y), Gear^.Radius*3, Gear^.Radius*3) = nil)) then