hedgewars/uAI.pas
branchwebgl
changeset 9950 2759212a27de
parent 9521 8054d9d775fd
parent 9844 8f5b48525a03
child 10015 4feced261c68
equal deleted inserted replaced
9521:8054d9d775fd 9950:2759212a27de
   254 // switch to 'skip' if we cannot move because of mouse cursor being shown
   254 // switch to 'skip' if we cannot move because of mouse cursor being shown
   255 if (Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
   255 if (Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0 then
   256     AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0);
   256     AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0);
   257 
   257 
   258 if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0))
   258 if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0))
   259     and (GameFlags and gfArtillery = 0) then
   259     and (GameFlags and gfArtillery = 0) and (cGravityf <> 0) then
   260     begin
   260     begin
   261     tmp:= random(2) + 1;
   261     tmp:= random(2) + 1;
   262     Push(0, Actions, Me^, tmp);
   262     Push(0, Actions, Me^, tmp);
   263     Push(0, Actions, Me^, tmp xor 3);
   263     Push(0, Actions, Me^, tmp xor 3);
   264 
   264