Don't set focus on gears when curor is visible (should fix cursor jumping)
authorunc0rr
Thu, 08 Jan 2009 13:00:54 +0000
changeset 1595 33529f567d2d
parent 1594 8e5c4ea7d52b
child 1596 4a7b9e451cb4
Don't set focus on gears when curor is visible (should fix cursor jumping)
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;