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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 16 years ago
parent 4e0faffc72
commit 857df41a6d

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

Loading…
Cancel
Save