mirror of https://github.com/OpenTTD/OpenTTD
(svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible
parent
b7e64bb5a6
commit
5e2c2db235
|
@ -1805,7 +1805,7 @@ static bool CheckClickOnStation(const ViewPort *vp, int x, int y)
|
||||||
{
|
{
|
||||||
const Station *st;
|
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) {
|
switch (vp->zoom) {
|
||||||
case ZOOM_LVL_NORMAL:
|
case ZOOM_LVL_NORMAL:
|
||||||
|
@ -1922,7 +1922,7 @@ static bool CheckClickOnWaypoint(const ViewPort *vp, int x, int y)
|
||||||
{
|
{
|
||||||
const Waypoint *wp;
|
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) {
|
switch (vp->zoom) {
|
||||||
case ZOOM_LVL_NORMAL:
|
case ZOOM_LVL_NORMAL:
|
||||||
|
|
Loading…
Reference in New Issue