diff options
-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)) { |