(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
This commit is contained in:
@@ -376,7 +376,7 @@ void AfterLoadVehicles(bool part_of_load)
|
||||
Train *t = Train::From(v);
|
||||
if (t->IsFrontEngine() || t->IsFreeWagon()) {
|
||||
t->gcache.last_speed = t->cur_speed; // update displayed train speed
|
||||
t->ConsistChanged(false);
|
||||
t->ConsistChanged(CCF_SAVELOAD);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -547,7 +547,7 @@ void FixupTrainLengths()
|
||||
}
|
||||
|
||||
/* Update all cached properties after moving the vehicle chain around. */
|
||||
Train::From(v)->ConsistChanged(true);
|
||||
Train::From(v)->ConsistChanged(CCF_TRACK);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user