(svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies.

This commit is contained in:
frosch
2008-08-23 16:26:01 +00:00
parent 40796e9f19
commit bb85d482d8

View File

@@ -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) {