1
0
Fork 0

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

release/0.7
frosch 2008-08-23 16:26:01 +00:00
parent 4e0faffc72
commit 857df41a6d
1 changed files with 1 additions and 1 deletions

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