reduce effect of the look-ahead behaviour that I tried to implement
authorsheepluva
Thu, 25 Aug 2011 18:29:46 +0200
changeset 5683 8a5efade0b93
parent 5682 06d5f561f772
child 5684 bc3d2a58921c
reduce effect of the look-ahead behaviour that I tried to implement
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Thu Aug 25 18:08:44 2011 +0200
+++ b/hedgewars/uWorld.pas	Thu Aug 25 18:29:46 2011 +0200
@@ -1195,8 +1195,8 @@
     end
     else
     begin
-        CursorPoint.X:= (prevPoint.X * 7 + hwRound(FollowGear^.X) + hwSign(FollowGear^.dX) * (FollowGear^.dX.QWordValue div _0_01.QWordValue) * 3 + WorldDx) div 8;
-        CursorPoint.Y:= (prevPoint.Y * 7 + cScreenHeight - (hwRound(FollowGear^.Y) + hwSign(FollowGear^.dY) * (FollowGear^.dY.QWordValue div _0_01.QWordValue) * 3 + WorldDy)) div 8;
+        CursorPoint.X:= (prevPoint.X * 7 + hwRound(FollowGear^.X) + hwSign(FollowGear^.dX) * (FollowGear^.dX.QWordValue div _0_01.QWordValue) * 2 + WorldDx) div 8;
+        CursorPoint.Y:= (prevPoint.Y * 7 + cScreenHeight - (hwRound(FollowGear^.Y) + hwSign(FollowGear^.dY) * (FollowGear^.dY.QWordValue div _0_01.QWordValue) * 2 + WorldDy)) div 8;
     end;
 
 wdy:= trunc(cScreenHeight / cScaleFactor) + cScreenHeight div 2 - cWaterLine - cVisibleWater;