Fix incorrect calculation of target point in AI drill strike test
authorunC0Rr
Mon, 14 Mar 2022 10:12:00 +0100
changeset 15858 f7875779d910
parent 15857 f0f615dcbe7c
child 15859 42109eb6ef51
Fix incorrect calculation of target point in AI drill strike test
hedgewars/uAIAmmoTests.pas
--- a/hedgewars/uAIAmmoTests.pas	Sat Feb 05 10:50:25 2022 -0500
+++ b/hedgewars/uAIAmmoTests.pas	Mon Mar 14 10:12:00 2022 +0100
@@ -1668,7 +1668,7 @@
         if dmg[i] <> BadTurn then
             inc(value, dmg[i]);
     t:= value;
-    targetX:= Targ.Point.X - 60;
+    targetX:= Targ.Point.X - 60 - cShift;
 
     for i:= 0 to 3 do
         if dmg[i] <> BadTurn then