hedgewars/uWorld.pas
changeset 5247 bf6d4bc531d2
parent 5191 c7000a6b397b
child 5294 67278f1cba2c
--- a/hedgewars/uWorld.pas	Tue Jun 21 16:42:04 2011 +0400
+++ b/hedgewars/uWorld.pas	Tue Jun 21 16:43:05 2011 +0400
@@ -1165,7 +1165,7 @@
 {$ENDIF}
 
 if (not PlacingHogs) and (FollowGear <> nil) and (not isCursorVisible) and (not fastUntilLag) then
-    if abs(CursorPoint.X - prevPoint.X) + abs(CursorPoint.Y - prevpoint.Y) > 4 then
+    if (not autoCameraOn) or (abs(CursorPoint.X - prevPoint.X) + abs(CursorPoint.Y - prevpoint.Y) > 4) then
     begin
         FollowGear:= nil;
         prevPoint:= CursorPoint;