summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-26 18:55:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-26 18:55:44 +0300
commit8c3d197dbdfc00969f30309ee7bf52656b33ed1b (patch)
tree1ae60266bcd76a6399921ad9a0d5a9f6af9ae1de /src/gui/viewport.cpp
parentb29f6896196376a6b3c2abf60de766811264af75 (diff)
downloadplus-8c3d197dbdfc00969f30309ee7bf52656b33ed1b.tar.gz
plus-8c3d197dbdfc00969f30309ee7bf52656b33ed1b.tar.bz2
plus-8c3d197dbdfc00969f30309ee7bf52656b33ed1b.tar.xz
plus-8c3d197dbdfc00969f30309ee7bf52656b33ed1b.zip
Fix code style.
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)