summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-12 22:35:57 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-12 22:35:57 +0300
commitbf2ccebc8d77db0b531d49912cfc403a3fda8449 (patch)
tree9d625d1f184788afe77a6f89a5885faa30f3cc16 /src/gui/viewport.cpp
parent401f805d56edb9bf470f6d16ea5c86b4864f741f (diff)
downloadmanaverse-bf2ccebc8d77db0b531d49912cfc403a3fda8449.tar.gz
manaverse-bf2ccebc8d77db0b531d49912cfc403a3fda8449.tar.bz2
manaverse-bf2ccebc8d77db0b531d49912cfc403a3fda8449.tar.xz
manaverse-bf2ccebc8d77db0b531d49912cfc403a3fda8449.zip
Fix mouse movement in classic way.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp2
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))
{