hedgewars/uAI.pas
changeset 13096 d78e65c66573
parent 12713 927b35f59a46
child 13133 733f3154198c
equal deleted inserted replaced
13095:4118006fab95 13096:d78e65c66573
   286 // switch to 'skip' if we cannot move because of mouse cursor being shown
   286 // switch to 'skip' if we cannot move because of mouse cursor being shown
   287 if (Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
   287 if (Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
   288     AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0);
   288     AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0);
   289 
   289 
   290 if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0))
   290 if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0))
   291     and (GameFlags and gfArtillery = 0) and (cGravityf <> 0) then
   291     and (CurrentHedgehog^.Effects[heArtillery] = 0) and (cGravityf <> 0) then
   292     begin
   292     begin
   293     tmp:= random(2) + 1;
   293     tmp:= random(2) + 1;
   294     Push(0, Actions, Me^, tmp);
   294     Push(0, Actions, Me^, tmp);
   295     Push(0, Actions, Me^, tmp xor 3);
   295     Push(0, Actions, Me^, tmp xor 3);
   296 
   296