diff options
author | frosch <frosch@openttd.org> | 2008-08-23 16:26:01 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-08-23 16:26:01 +0000 |
commit | bb85d482d8e06628d3e7c0821fa6a9d5f127e30e (patch) | |
tree | 0f5f6cef477e5f68bce8ca58a65eb15e623d8dea /src | |
parent | 40796e9f19cb199405121808f8a95cb1080bddaa (diff) | |
download | openttd-bb85d482d8e06628d3e7c0821fa6a9d5f127e30e.tar.xz |
(svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies.
Diffstat (limited to 'src')
-rw-r--r-- | src/waypoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 7343b9317..1fa291b39 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -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) { |