(svn r1558) -Fix: [ 1104350 ] Crashed trains do not initiate the lost vehicle

message anymore
This commit is contained in:
Celestar 2005-01-18 16:01:35 +00:00
parent eaa6bf3f42
commit 389a4bf44d
1 changed files with 1 additions and 1 deletions

View File

@ -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(