From 857df41a6dc84eae216bfc1116000f18ec683e5b Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 23 Aug 2008 16:26:01 +0000 Subject: [PATCH] (svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies. --- src/waypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 7343b9317f..1fa291b399 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) {