compensate a bit for the reduction in power by increasing target height, avoids bouncing off terrain.
authornemo
Mon, 08 Nov 2010 23:28:39 -0500
changeset 4226 b39ca9d087a2
parent 4225 ce9e2b05e9c1
child 4227 4329abd181c2
compensate a bit for the reduction in power by increasing target height, avoids bouncing off terrain.
hedgewars/uAIAmmoTests.pas
--- a/hedgewars/uAIAmmoTests.pas	Mon Nov 08 22:26:44 2010 -0500
+++ b/hedgewars/uAIAmmoTests.pas	Mon Nov 08 23:28:39 2010 -0500
@@ -362,7 +362,7 @@
 repeat
   inc(TestTime, 1000);
   Vx:= (int2hwFloat(Targ.X) - Me^.X) / int2hwFloat(TestTime + tDelta);
-  Vy:= cGravity * ((TestTime + tDelta) div 2) - (int2hwFloat(Targ.Y-125) - Me^.Y) / int2hwFloat(TestTime + tDelta);
+  Vy:= cGravity * ((TestTime + tDelta) div 2) - (int2hwFloat(Targ.Y-200) - Me^.Y) / int2hwFloat(TestTime + tDelta);
   r:= Distance(Vx, Vy);
   if not (r > _1) then
      begin