mirror of https://github.com/OpenTTD/OpenTTD
(svn r7003) -Fix: only the appropriate train owner can now see the "Train is lost" message (peter1138)
parent
56c81cc978
commit
b2eece5b53
|
@ -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
|
// it is first time the problem occurred, set the "path not found" flag
|
||||||
SETBIT(v->u.rail.flags, VRF_NO_PATH_TO_DESTINATION);
|
SETBIT(v->u.rail.flags, VRF_NO_PATH_TO_DESTINATION);
|
||||||
// and notify user about the event
|
// and notify user about the event
|
||||||
if (_patches.lost_train_warn) {
|
if (_patches.lost_train_warn && v->owner == _local_player) {
|
||||||
SetDParam(0, v->unitnumber);
|
SetDParam(0, v->unitnumber);
|
||||||
AddNewsItem(
|
AddNewsItem(
|
||||||
STR_TRAIN_IS_LOST,
|
STR_TRAIN_IS_LOST,
|
||||||
|
|
Loading…
Reference in New Issue