# HG changeset patch # User nemo # Date 1387918522 18000 # Node ID 8f5b48525a03f9a70af935366ee17fd140ab5972 # Parent 71bcef9debe7b29f185b38094c16d945dea94bf5 quick sanity change for AI + zerog diff -r 71bcef9debe7 -r 8f5b48525a03 hedgewars/uAI.pas --- a/hedgewars/uAI.pas Tue Dec 24 15:44:50 2013 -0500 +++ b/hedgewars/uAI.pas Tue Dec 24 15:55:22 2013 -0500 @@ -251,7 +251,7 @@ AddAction(Actions, aia_Weapon, Longword(amSkip), 100 + random(200), 0, 0); if ((CurrentHedgehog^.MultiShootAttacks = 0) or ((Ammoz[Me^.Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NoMoveAfter) = 0)) - and (GameFlags and gfArtillery = 0) then + and (GameFlags and gfArtillery = 0) and (cGravityf <> 0) then begin tmp:= random(2) + 1; Push(0, Actions, Me^, tmp); diff -r 71bcef9debe7 -r 8f5b48525a03 hedgewars/uAIAmmoTests.pas --- a/hedgewars/uAIAmmoTests.pas Tue Dec 24 15:44:50 2013 -0500 +++ b/hedgewars/uAIAmmoTests.pas Tue Dec 24 15:55:22 2013 -0500 @@ -1047,7 +1047,7 @@ begin ap.ExplR:= 0; ap.Time:= 0; -if (Level > 3) then +if (Level > 3) or (cGravityf = 0) then exit(BadTurn); ap.Angle:= 0;