hedgewars/uAI.pas
changeset 15689 975232e840c7
parent 15688 31ca6451056a
child 15690 c4d7eb75fd8a
equal deleted inserted replaced
15688:31ca6451056a 15689:975232e840c7
   103     Score, i, t, n, dAngle: LongInt;
   103     Score, i, t, n, dAngle: LongInt;
   104     a, aa: TAmmoType;
   104     a, aa: TAmmoType;
   105     useThisActions: boolean;
   105     useThisActions: boolean;
   106 begin
   106 begin
   107 BotLevel:= Me^.Hedgehog^.BotLevel;
   107 BotLevel:= Me^.Hedgehog^.BotLevel;
   108 windSpeed:= hwFloat2Float(cWindSpeed);
   108 aiWindSpeed:= hwFloat2Float(cWindSpeed);
   109 aiLaserSighting:= (cLaserSighting) or (HHHasAmmo(Me^.Hedgehog^, amLaserSight) > 0);
   109 aiLaserSighting:= (cLaserSighting) or (HHHasAmmo(Me^.Hedgehog^, amLaserSight) > 0);
   110 useThisActions:= false;
   110 useThisActions:= false;
   111 Me^.AIHints:= Me^.AIHints and (not aihAmmosChanged);
   111 Me^.AIHints:= Me^.AIHints and (not aihAmmosChanged);
   112 
   112 
   113 for i:= 0 to Pred(Targets.Count) do
   113 for i:= 0 to Pred(Targets.Count) do