diff options
author | smatz <smatz@openttd.org> | 2008-07-31 13:28:23 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-07-31 13:28:23 +0000 |
commit | 60cd53c375b64ef36942f8e96cbeb1b5bfa3acf4 (patch) | |
tree | 73e89a39286562a68c6c662e14088e0cddca086c /src/viewport.cpp | |
parent | 7672a90972be07ab2d3d5272818389b6b960e165 (diff) | |
download | openttd-60cd53c375b64ef36942f8e96cbeb1b5bfa3acf4.tar.xz |
(svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index c63375155..91420c30e 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1805,7 +1805,7 @@ static bool CheckClickOnStation(const ViewPort *vp, int x, int y) { const Station *st; - if (!HasBit(_display_opt, DO_SHOW_STATION_NAMES)) return false; + if (!HasBit(_display_opt, DO_SHOW_STATION_NAMES) || IsInvisibilitySet(TO_SIGNS)) return false; switch (vp->zoom) { case ZOOM_LVL_NORMAL: @@ -1922,7 +1922,7 @@ static bool CheckClickOnWaypoint(const ViewPort *vp, int x, int y) { const Waypoint *wp; - if (!HasBit(_display_opt, DO_WAYPOINTS)) return false; + if (!HasBit(_display_opt, DO_WAYPOINTS) || IsInvisibilitySet(TO_SIGNS)) return false; switch (vp->zoom) { case ZOOM_LVL_NORMAL: |