From bf2ccebc8d77db0b531d49912cfc403a3fda8449 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 12 Dec 2012 22:35:57 +0300 Subject: Fix mouse movement in classic way. --- src/gui/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(mMap->getTileWidth()); const int destY = (event.getY() + mPixelViewY) / static_cast(mMap->getTileHeight()); - if (playerX != destX && playerY != destY) + if (playerX != destX || playerY != destY) { if (!player_node->navigateTo(destX, destY)) { -- cgit v1.2.3-70-g09d2