--- a/hedgewars/uAI.pas Sat Jun 06 20:51:12 2020 +0200
+++ b/hedgewars/uAI.pas Sat Jun 06 23:40:29 2020 +0200
@@ -167,11 +167,6 @@
AddAction(BestActions, aia_Weapon, Longword(a), 300 + random(400), 0, 0);
- if (Ammoz[a].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
- begin
- AddAction(BestActions, aia_Put, 0, 8, ap.AttackPutX, ap.AttackPutY)
- end;
-
if (ap.Angle > 0) then
AddAction(BestActions, aia_LookRight, 0, 200, 0, 0)
else if (ap.Angle < 0) then
@@ -187,6 +182,11 @@
AddAction(BestActions, aia_Precise, aim_release, 10, 0, 0);
end;
+ if (Ammoz[a].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
+ begin
+ AddAction(BestActions, aia_Put, 0, 8, ap.AttackPutX, ap.AttackPutY)
+ end;
+
if (Ammoz[a].Ammo.Propz and ammoprop_NoCrosshair) = 0 then
begin
dAngle:= LongInt(Me^.Angle) - Abs(ap.Angle);