summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-20 15:44:24 +0000
committeralberth <alberth@openttd.org>2010-11-20 15:44:24 +0000
commitab50f74d7fa3c1c96de54012ccc197c4800901c8 (patch)
treefbee322b7dcec81c6a98a1ee923984d902e834f9 /src/viewport.cpp
parent38dc34828ea679e4952f9f30361382e29d2f2e06 (diff)
downloadopenttd-ab50f74d7fa3c1c96de54012ccc197c4800901c8.tar.xz
(svn r21273) -Codechange: Return values should start at the same line.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 3b25c9efe..01b98effa 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1729,11 +1729,8 @@ static bool CheckClickOnViewportSign(const ViewPort *vp, int x, int y, const Vie
x = ScaleByZoom(x - vp->left, vp->zoom) + vp->virtual_left;
y = ScaleByZoom(y - vp->top, vp->zoom) + vp->virtual_top;
- return
- y >= sign->top &&
- y < sign->top + sign_height &&
- x >= sign->center - sign_half_width &&
- x < sign->center + sign_half_width;
+ return y >= sign->top && y < sign->top + sign_height &&
+ x >= sign->center - sign_half_width && x < sign->center + sign_half_width;
}
static bool CheckClickOnTown(const ViewPort *vp, int x, int y)