changeset 16043 | e66feb918d71 |
parent 15862 | 8553c51a9ec8 |
child 16051 | 2003b466b279 |
--- a/hedgewars/uAIAmmoTests.pas Wed May 15 10:05:13 2024 +0200 +++ b/hedgewars/uAIAmmoTests.pas Thu May 16 14:11:16 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