diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-14 02:01:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-14 02:01:01 +0300 |
commit | 09963adfe919180f5936d048b4ab7a057134a8ff (patch) | |
tree | 24622dd1e65c8da04a026061784d0a1c72b293b1 /src/gui/viewport.cpp | |
parent | b64a1f46b930516927b1290c1d6771b491b84958 (diff) | |
download | manaverse-09963adfe919180f5936d048b4ab7a057134a8ff.tar.gz manaverse-09963adfe919180f5936d048b4ab7a057134a8ff.tar.bz2 manaverse-09963adfe919180f5936d048b4ab7a057134a8ff.tar.xz manaverse-09963adfe919180f5936d048b4ab7a057134a8ff.zip |
Add quick fix for normal right click.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 46d47ab4a..c7e2b31df 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -270,13 +270,12 @@ void Viewport::logic() BLOCK_START("Viewport::logic") // Make the player follow the mouse position // if the mouse is dragged elsewhere than in a window. - followMouse(); + Gui::getMouseState(&mMouseX, &mMouseY); BLOCK_END("Viewport::logic") } void Viewport::followMouse() { - return; if (!gui) return; const uint8_t button = Gui::getMouseState(&mMouseX, &mMouseY); |