author | unc0rr |
Fri, 27 Jul 2012 11:41:16 +0400 | |
changeset 7453 | 92bdcd69bf2a |
parent 7450 | 4be946b65a85 |
child 7456 | 823bd65ef095 |
hedgewars/uAI.pas | file | annotate | diff | comparison | revisions |
--- a/hedgewars/uAI.pas Fri Jul 27 10:29:37 2012 +0400 +++ b/hedgewars/uAI.pas Fri Jul 27 11:41:16 2012 +0400 @@ -179,7 +179,7 @@ AddAction(BestActions, aia_attack, aim_push, 350 + random(200), 0, 0); AddAction(BestActions, aia_attack, aim_release, 1, 0, 0); - if ap.Angle > 32 then + if abs(ap.Angle) > 32 then begin AddAction(BestActions, aia_Down, aim_push, 100 + random(150), 0, 0); AddAction(BestActions, aia_Down, aim_release, 32, 0, 0);