From bb85d482d8e06628d3e7c0821fa6a9d5f127e30e Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 23 Aug 2008 16:26:01 +0000 Subject: (svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies. --- src/waypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 7343b9317..1fa291b39 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -144,7 +144,7 @@ static Waypoint *FindDeletedWaypointCloseTo(TileIndex tile) uint thres = 8; FOR_ALL_WAYPOINTS(wp) { - if (wp->deleted) { + if (wp->deleted && (wp->owner == OWNER_NONE || wp->owner == _current_player)) { uint cur_dist = DistanceManhattan(tile, wp->xy); if (cur_dist < thres) { -- cgit v1.2.3-70-g09d2