diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-12 22:35:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-12 22:35:57 +0300 |
commit | bf2ccebc8d77db0b531d49912cfc403a3fda8449 (patch) | |
tree | 9d625d1f184788afe77a6f89a5885faa30f3cc16 /src | |
parent | 401f805d56edb9bf470f6d16ea5c86b4864f741f (diff) | |
download | manaverse-bf2ccebc8d77db0b531d49912cfc403a3fda8449.tar.gz manaverse-bf2ccebc8d77db0b531d49912cfc403a3fda8449.tar.bz2 manaverse-bf2ccebc8d77db0b531d49912cfc403a3fda8449.tar.xz manaverse-bf2ccebc8d77db0b531d49912cfc403a3fda8449.zip |
Fix mouse movement in classic way.
Diffstat (limited to 'src')
-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 5f12d0df4..5175d683d 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -673,7 +673,7 @@ void Viewport::mouseDragged(gcn::MouseEvent &event) / static_cast<float>(mMap->getTileWidth()); const int destY = (event.getY() + mPixelViewY) / static_cast<float>(mMap->getTileHeight()); - if (playerX != destX && playerY != destY) + if (playerX != destX || playerY != destY) { if (!player_node->navigateTo(destX, destY)) { |