summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index ca301d8e8..e70165648 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -688,7 +688,8 @@ void Viewport::walkByMouse(const MouseEvent &event)
if (!mMap->getWalk(destX, f))
continue;
- const int offset = mMap->getHeightOffset(destX, f) * 16;
+ const int offset = mMap->getHeightOffset(
+ destX, f) * 16;
const int pixelF = f * 32;
const int diff = abs(clickY + offset - pixelF);
if (diff < newDiffY)