summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-10-29 13:50:39 +0000
committerKUDr <kudr@openttd.org>2006-10-29 13:50:39 +0000
commitb2eece5b53e33e1d2593b0a6bbe22ef4e24a3796 (patch)
tree7f40a9ed1123ba9b38978aaa7f0d67e0cb428786
parent56c81cc97853b1b11408327e0b797e6f486c98fd (diff)
downloadopenttd-b2eece5b53e33e1d2593b0a6bbe22ef4e24a3796.tar.xz
(svn r7003) -Fix: only the appropriate train owner can now see the "Train is lost" message (peter1138)
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 01849cb7e..6edecc4e6 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -2363,7 +2363,7 @@ static byte ChooseTrainTrack(Vehicle* v, TileIndex tile, DiagDirection enterdir,
// 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,