branch | transitional_engine |
changeset 16051 | 2003b466b279 |
parent 15929 | 128ace913837 |
parent 16043 | e66feb918d71 |
--- a/hedgewars/uAIAmmoTests.pas Wed Aug 28 15:31:51 2024 +0200 +++ b/hedgewars/uAIAmmoTests.pas Wed Aug 28 15:34:49 2024 +0200 @@ -2478,7 +2478,7 @@ Vy:= (Targ.Point.Y - y) * 1 / 1024; ap.Angle:= DxDy2AttackAnglef(Vx, -Vy); // Minigun angle is limited -if (ap.Angle < Ammoz[amMinigun].minAngle) or (ap.Angle > Ammoz[amMinigun].maxAngle) then +if (abs(ap.Angle) < Ammoz[amMinigun].minAngle) or (abs(ap.Angle) > Ammoz[amMinigun].maxAngle) then exit(BadTurn); // Apply inaccuracy