hedgewars/uAI.pas
changeset 9844 8f5b48525a03
parent 9495 2fc346fadae3
child 9950 2759212a27de
child 9998 736015b847e3
equal deleted inserted replaced
9842:71bcef9debe7 9844:8f5b48525a03
   249 // switch to 'skip' if we cannot move because of mouse cursor being shown
   249 // switch to 'skip' if we cannot move because of mouse cursor being shown
   250 if (Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
   250 if (Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
   251     AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0);
   251     AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0);
   252 
   252 
   253 if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0))
   253 if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0))
   254     and (GameFlags and gfArtillery = 0) then
   254     and (GameFlags and gfArtillery = 0) and (cGravityf <> 0) then
   255     begin
   255     begin
   256     tmp:= random(2) + 1;
   256     tmp:= random(2) + 1;
   257     Push(0, Actions, Me^, tmp);
   257     Push(0, Actions, Me^, tmp);
   258     Push(0, Actions, Me^, tmp xor 3);
   258     Push(0, Actions, Me^, tmp xor 3);
   259 
   259