# HG changeset patch # User unc0rr # Date 1218200374 0 # Node ID 2969efb7050f93da0d2beb0c5d18baf5433c2fb7 # Parent 34ffd3d99116a27dffd350643246676da08bcf15 Disallow AI to hurts itself with mortar (in quite rare cases it tries to shoot directly up) diff -r 34ffd3d99116 -r 2969efb7050f hedgewars/uAIAmmoTests.pas --- a/hedgewars/uAIAmmoTests.pas Thu Aug 07 19:01:32 2008 +0000 +++ b/hedgewars/uAIAmmoTests.pas Fri Aug 08 12:59:34 2008 +0000 @@ -213,7 +213,7 @@ EY:= hwRound(y); until TestColl(EX, EY, 5) or (EY > 1000); - if EY < 1000 then + if (EY < 1000) and not dY.isNegative then begin Result:= RateExplosion(Me, EX, EY, 91); if (Result = 0) then