Merge branch 'master' into save_ext

This commit is contained in:
Jonathan G Rennison
2017-03-28 02:26:13 +01:00
79 changed files with 468 additions and 168 deletions

View File

@@ -375,6 +375,8 @@ void AfterLoadVehicles(bool part_of_load)
FOR_ALL_VEHICLES(v) {
assert(v->first != NULL);
v->trip_occupancy = CalcPercentVehicleFilled(v, NULL);
switch (v->type) {
case VEH_TRAIN: {
Train *t = Train::From(v);