# HG changeset patch
# User unc0rr
# Date 1231419654 0
# Node ID 33529f567d2d80fc6f16cc53bb22356e99ecd760
# Parent  8e5c4ea7d52b72f9ae61fc4b6ac928b4da232018
Don't set focus on gears when curor is visible (should fix cursor jumping)

diff -r 8e5c4ea7d52b -r 33529f567d2d hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Thu Jan 08 12:59:47 2009 +0000
+++ b/hedgewars/uWorld.pas	Thu Jan 08 13:00:54 2009 +0000
@@ -419,7 +419,7 @@
 if (not (CurrentTeam^.ExtDriven and isCursorVisible))
    and cHasFocus then SDL_GetMouseState(@CursorPoint.X, @CursorPoint.Y);
 
-if (FollowGear <> nil) then
+if (FollowGear <> nil) and (not isCursorVisible) then
    if abs(CursorPoint.X - prevPoint.X) + abs(CursorPoint.Y - prevpoint.Y) > 4 then
       begin
       FollowGear:= nil;