diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-24 18:29:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-24 18:30:16 +0300 |
commit | a316d537dce50f4b4e1e10f5c26a7851baddbd8b (patch) | |
tree | 078de355216db6dab67df9575402cdba7d537dbd /src/gui/viewport.cpp | |
parent | cb00b6fe126afe5fff8fc7ff491fda6003ea68f2 (diff) | |
download | manaverse-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.gz manaverse-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.bz2 manaverse-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.xz manaverse-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.zip |
Small style changes.
Also fix overloaded methods visibility.
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 358974707..459f66052 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -281,7 +281,7 @@ void Viewport::_followMouse() { uint8_t button = SDL_GetMouseState(&mMouseX, &mMouseY); // If the left button is dragged - if (mPlayerFollowMouse && button & SDL_BUTTON(1)) + if (mPlayerFollowMouse && (button & SDL_BUTTON(1))) { // We create a mouse event and send it to mouseDragged. uint8_t *keys = SDL_GetKeyState(nullptr); |