1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 15:09:10 +00:00

(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 4e0faffc72
commit 857df41a6d

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