wind blowing around mines off-turn was too annoying.
authornemo
Wed, 11 Oct 2017 17:05:35 -0400
changeset 12698 2592c6ea6008
parent 12697 cb6b70392459
child 12699 e96f0f89ba0c
wind blowing around mines off-turn was too annoying.
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Wed Oct 11 23:01:07 2017 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Wed Oct 11 17:05:35 2017 -0400
@@ -468,7 +468,7 @@
     if isFalling and (Gear^.State and gstNoGravity = 0) then
         begin
         Gear^.dY := Gear^.dY + cGravity;
-        if (GameFlags and gfMoreWind <> 0) and 
+        if (GameFlags and gfMoreWind <> 0) and (TurnTimeLeft > 0) and
            ((xland or land) = 0) and
            ((Gear^.dX.QWordValue + Gear^.dY.QWordValue) > _0_02.QWordValue) then
             Gear^.dX := Gear^.dX + cWindSpeed / Gear^.Density