summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCelestar <celestar@openttd.org>2005-01-18 16:01:35 +0000
committerCelestar <celestar@openttd.org>2005-01-18 16:01:35 +0000
commit389a4bf44dc6529f150586db01de7ed59809574e (patch)
tree896d3570bbbca9f54834b310d7eaaeeac64089fd
parenteaa6bf3f42f357ee29786698f484d51b640e2d52 (diff)
downloadopenttd-389a4bf44dc6529f150586db01de7ed59809574e.tar.xz
(svn r1558) -Fix: [ 1104350 ] Crashed trains do not initiate the lost vehicle
message anymore
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 783b5bbd0..73fd22399 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -2746,7 +2746,7 @@ void OnNewDay_Train(Vehicle *v)
CheckIfTrainNeedsService(v);
// check if train hasn't advanced in its order list for a set number of days
- if (_patches.lost_train_days && v->num_orders && !(v->vehstatus & VS_STOPPED) && ++v->u.rail.days_since_order_progr >= _patches.lost_train_days && v->owner == _local_player) {
+ if (_patches.lost_train_days && v->num_orders && !(v->vehstatus & (VS_STOPPED | VS_CRASHED) ) && ++v->u.rail.days_since_order_progr >= _patches.lost_train_days && v->owner == _local_player) {
v->u.rail.days_since_order_progr = 0;
SetDParam(0, v->unitnumber);
AddNewsItem(