diff options
author | Celestar <Celestar@openttd.org> | 2005-01-18 16:01:35 +0000 |
---|---|---|
committer | Celestar <Celestar@openttd.org> | 2005-01-18 16:01:35 +0000 |
commit | 7768e97fa6580c1fb250795576b3dd642cd54e39 (patch) | |
tree | 896d3570bbbca9f54834b310d7eaaeeac64089fd | |
parent | 4eb8f833fe87e4563a9e7fa311fcbf00fcacfde3 (diff) | |
download | openttd-7768e97fa6580c1fb250795576b3dd642cd54e39.tar.xz |
(svn r1558) -Fix: [ 1104350 ] Crashed trains do not initiate the lost vehicle
message anymore
-rw-r--r-- | train_cmd.c | 2 |
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( |