Fix teleport cursor briefly re-appearing after placing hog in hog placement phase + inf attack mode
authorWuzzy <Wuzzy2@mail.ru>
Thu, 27 Sep 2018 00:26:58 +0200
changeset 13833 c0a7ef988151
parent 13832 3b94a2c707c6
child 13834 e3fee73c51a0
Fix teleport cursor briefly re-appearing after placing hog in hog placement phase + inf attack mode
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Thu Sep 27 00:11:54 2018 +0200
+++ b/hedgewars/uGears.pas	Thu Sep 27 00:26:58 2018 +0200
@@ -422,7 +422,8 @@
         dec(delay2);
 
         if ((delay2 mod cInactDelay) = 0) and (CurrentHedgehog <> nil) and (CurrentHedgehog^.Gear <> nil)
-        and (not CurrentHedgehog^.Unplaced) then
+        and (not CurrentHedgehog^.Unplaced)
+        and (not PlacingHogs) then
             begin
             if (CurrentHedgehog^.Gear^.State and gstAttacked <> 0)
             and (Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget <> 0) then