changeset 9985:3e27194695a6 draft

(svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies.
author frosch <frosch@openttd.org>
date Sat, 23 Aug 2008 16:26:01 +0000
parents f79832291f05
children c218d2656349
files src/waypoint.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -144,7 +144,7 @@
 	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) {