mirror of https://github.com/OpenTTD/OpenTTD
(svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies.
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…
Reference in New Issue