diff options
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 9e529063..3d90846e 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -278,7 +278,7 @@ void Viewport::_followMouse() mMouseY = static_cast<int>(logicalY); // If the left button is dragged - if (mPlayerFollowMouse && button & SDL_BUTTON(1)) + if (mPlayerFollowMouse && button & SDL_BUTTON_LMASK) { // We create a mouse event and send it to mouseDragged. const Uint8 *keys = SDL_GetKeyboardState(nullptr); |