Changeset - r4996:8c088c2fc3f1
[Not reviewed]
master
0 1 0
KUDr - 18 years ago 2006-10-29 13:50:39
kudr@openttd.org
(svn r7003) -Fix: only the appropriate train owner can now see the "Train is lost" message (peter1138)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -2360,13 +2360,13 @@ static byte ChooseTrainTrack(Vehicle* v,
 
	if (path_not_found) {
 
		// PF didn't find the route
 
		if (!HASBIT(v->u.rail.flags, VRF_NO_PATH_TO_DESTINATION)) {
 
			// 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,
 
					NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, 0),
 
					v->index,
 
					0);
0 comments (0 inline, 0 general)