hedgewars/uWorld.pas
changeset 498 9c8b385dc9a1
parent 446 692c75d46a4b
child 526 e3689572bb15
equal deleted inserted replaced
497:adf1aee202c6 498:9c8b385dc9a1
   401       begin
   401       begin
   402       FollowGear:= nil;
   402       FollowGear:= nil;
   403       exit
   403       exit
   404       end
   404       end
   405       else begin
   405       else begin
   406       CursorPoint.x:= (CursorPoint.x * 7 + (hwRound(FollowGear^.X + hwSign(FollowGear^.dX) * 100) + WorldDx)) div 8;
   406       CursorPoint.x:= (CursorPoint.x * 7 + (hwRound(FollowGear^.X) + hwSign(FollowGear^.dX) * 100) + WorldDx) div 8;
   407       CursorPoint.y:= (CursorPoint.y * 7 + (hwRound(FollowGear^.Y) + WorldDy)) div 8
   407       CursorPoint.y:= (CursorPoint.y * 7 + (hwRound(FollowGear^.Y) + WorldDy)) div 8
   408       end;
   408       end;
   409 
   409 
   410 if ((CursorPoint.X = prevPoint.X)and(CursorPoint.Y = prevpoint.Y)) then exit;
   410 if ((CursorPoint.X = prevPoint.X)and(CursorPoint.Y = prevpoint.Y)) then exit;
   411 
   411