summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-20 09:34:30 +0000
committeralberth <alberth@openttd.org>2010-12-20 09:34:30 +0000
commit50faf52cfc68caa48969f96df81a45e13d5599e0 (patch)
treeffad1101a6a0dc59b4e238f4211f6710d232c1e3 /src/viewport.cpp
parent79681051c8e139b3358b92cbdd2d6741fe74b4fd (diff)
downloadopenttd-50faf52cfc68caa48969f96df81a45e13d5599e0.tar.xz
(svn r21542) -Codechange (r14789): Handling a click at a tile once is enough.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index a0474954c..14dfbc3e7 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1911,7 +1911,7 @@ bool HandleViewportClicked(const ViewPort *vp, int x, int y)
if (CheckClickOnTown(vp, x, y)) return true;
if (CheckClickOnStation(vp, x, y)) return true;
if (CheckClickOnSign(vp, x, y)) return true;
- CheckClickOnLandscape(vp, x, y);
+ bool result = CheckClickOnLandscape(vp, x, y);
if (v != NULL) {
DEBUG(misc, 2, "Vehicle %d (index %d) at %p", v->unitnumber, v->index, v);
@@ -1925,7 +1925,7 @@ bool HandleViewportClicked(const ViewPort *vp, int x, int y)
}
return true;
}
- return CheckClickOnLandscape(vp, x, y);
+ return result;
}