# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1593977855 -7200
# Node ID a92220611821fba417775b9ad1b206bc6ae4d558
# Parent  3224d0d970ac12ea69e449eb32f11b93e9b9bcbe
AI: Switch to amNothing instead of amSkip to unselect weapon

diff -r 3224d0d970ac -r a92220611821 hedgewars/uAI.pas
--- a/hedgewars/uAI.pas	Sun Jul 05 21:25:15 2020 +0200
+++ b/hedgewars/uAI.pas	Sun Jul 05 21:37:35 2020 +0200
@@ -293,9 +293,9 @@
 BestRate:= RatePlace(Me);
 BaseRate:= Max(BestRate, 0);
 
-// switch to 'skip' if we cannot move because of mouse cursor being shown
+// unselect weapon if we cannot move because of mouse cursor being shown
 if (Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
-    AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0);
+    AddAction(Actions, aia_Weapon, Longword(amNothing), 100 + random(200), 0, 0);
 
 if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0))
     and (CurrentHedgehog^.Effects[heArtillery] = 0) and (cGravityf <> 0) then