diff options
author | alberth <alberth@openttd.org> | 2010-11-20 15:44:24 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-20 15:44:24 +0000 |
commit | ab50f74d7fa3c1c96de54012ccc197c4800901c8 (patch) | |
tree | fbee322b7dcec81c6a98a1ee923984d902e834f9 /src/viewport.cpp | |
parent | 38dc34828ea679e4952f9f30361382e29d2f2e06 (diff) | |
download | openttd-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.cpp | 7 |
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) |