changeset 4996:eaa2934e7c94 draft

(svn r7003) -Fix: only the appropriate train owner can now see the "Train is lost" message (peter1138)
author KUDr <KUDr@openttd.org>
date Sun, 29 Oct 2006 13:50:39 +0000
parents 1f10f18f5d43
children 43c10db4c352
files train_cmd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -2363,7 +2363,7 @@
 			// it is first time the problem occurred, set the "path not found" flag
 			SETBIT(v->u.rail.flags, VRF_NO_PATH_TO_DESTINATION);
 			// and notify user about the event
-			if (_patches.lost_train_warn) {
+			if (_patches.lost_train_warn && v->owner == _local_player) {
 				SetDParam(0, v->unitnumber);
 				AddNewsItem(
 					STR_TRAIN_IS_LOST,