hedgewars/uAI.pas
changeset 15761 94f4d0a96143
parent 15729 26c6e5325075
child 15762 0a172cfe8840
--- a/hedgewars/uAI.pas	Sun Sep 06 00:21:37 2020 +0300
+++ b/hedgewars/uAI.pas	Thu Sep 10 09:30:41 2020 +0200
@@ -199,13 +199,13 @@
                             end;
                         end;
 
-                    AddAction(BestActions, aia_Weapon, Longword(a), 300 + random(400), 0, 0);
-
                     if (ap.Angle > 0) then
                         AddAction(BestActions, aia_LookRight, 0, 200, 0, 0)
                     else if (ap.Angle < 0) then
                         AddAction(BestActions, aia_LookLeft, 0, 200, 0, 0);
 
+                    AddAction(BestActions, aia_Weapon, Longword(a), 300 + random(400), 0, 0);
+
                     if (Ammoz[a].Ammo.Propz and ammoprop_Timerable) <> 0 then
                         AddAction(BestActions, aia_Timer, ap.Time div 1000, 400, 0, 0);