summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-08-23 16:26:01 +0000
committerfrosch <frosch@openttd.org>2008-08-23 16:26:01 +0000
commit857df41a6dc84eae216bfc1116000f18ec683e5b (patch)
tree0f5f6cef477e5f68bce8ca58a65eb15e623d8dea
parent4e0faffc7281711d7318e1ec96685c8255c09f3f (diff)
downloadopenttd-857df41a6dc84eae216bfc1116000f18ec683e5b.tar.xz
(svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies.
-rw-r--r--src/waypoint.cpp2
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) {