hedgewars/uGearsHandlersMess.pas
changeset 10815 2a85c551909c
parent 10807 66cde98f8cbe
child 10818 f642a28cab0c
--- a/hedgewars/uGearsHandlersMess.pas	Sat Feb 07 00:19:54 2015 +0300
+++ b/hedgewars/uGearsHandlersMess.pas	Sat Feb 07 11:53:08 2015 +0300
@@ -1799,7 +1799,7 @@
         ((TurnTimeLeft < cHedgehogTurnTime) and (cHedgehogTurnTime-TurnTimeLeft < 5000)) or
         (Gear^.State and gsttmpFlag = 0) or
         (Gear^.Angle = 0) then
-        gear^.State:= gear^.State and not gstHHChooseTarget
+        gear^.State:= gear^.State and (not gstHHChooseTarget)
     else if
     // todo, allow not finding new target, set timeout on target retention
         (Gear^.State and gstAttacking = 0) and