Browse Source

Disable mouse movment during demo playback

pull/2606/head
Anders Jenbo 5 years ago
parent
commit
96db759ba2
  1. 3
      Source/miniwin/misc_msg.cpp

3
Source/miniwin/misc_msg.cpp

@ -48,7 +48,8 @@ void SetCursorPos(int x, int y)
mousePositionWarping = { x, y };
mouseWarping = true;
LogicalToOutput(&x, &y);
SDL_WarpMouseInWindow(ghMainWnd, x, y);
if (!demoMode)
SDL_WarpMouseInWindow(ghMainWnd, x, y);
}
// Moves the mouse to the first attribute "+" button.

Loading…
Cancel
Save