(svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible
authorsmatz
Thu, 31 Jul 2008 13:28:23 +0000
changeset 9755 da0c1b33c727
parent 9754 934a4d138205
child 9756 acd40bb24510
(svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible
src/viewport.cpp
--- a/src/viewport.cpp	Thu Jul 31 05:47:29 2008 +0000
+++ b/src/viewport.cpp	Thu Jul 31 13:28:23 2008 +0000
@@ -1805,7 +1805,7 @@
 {
 	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 @@
 {
 	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: