# HG changeset patch # User unC0Rr # Date 1650461748 -7200 # Node ID 8553c51a9ec890c9b365cf6093b23a520a92039e # Parent dd891c8e30c7aabfd14686cc0259ec987f9fe335 Fix typo, small adjustments diff -r dd891c8e30c7 -r 8553c51a9ec8 hedgewars/uAIAmmoTests.pas --- a/hedgewars/uAIAmmoTests.pas Thu Apr 07 08:15:08 2022 +0200 +++ b/hedgewars/uAIAmmoTests.pas Wed Apr 20 15:35:48 2022 +0200 @@ -667,8 +667,8 @@ value:= BadTurn // Sanity check 3: If impact location is close, above us and wind blows // towards us, there's a risk of fire flying towards us, so fail in this case. - else if (Level < 3) and (range <= 600) and (trunc(meY) >= EX) and - (((ap.Angle < 0) and (aiWindSpeed > 0)) or ((ap.Angle > 0) and (aiWindSpeed < 0))) then + else if (Level < 3) and (range <= 1000) and (trunc(meY) >= EY) and + ((ap.Angle < 0) <> (aiWindSpeed < 0)) then value:= BadTurn // Timeout else if t < -timeLimit then @@ -1675,7 +1675,7 @@ begin dec(t, dmg[i]); inc(t, dmg[i + 6]); - if t > value then + if t >= value then begin value:= t; targetX:= Targ.Point.X - 30 - cShift + i * 30