(svn r27822) -Feature: Vehicle Group Info: Add profits and occupancy display to group vehicle list (mtm, JGR)

This commit is contained in:
peter1138
2017-03-24 07:33:31 +00:00
parent 2c0ef5c659
commit 0887289e3d
6 changed files with 57 additions and 0 deletions

View File

@@ -2160,6 +2160,7 @@ void Vehicle::LeaveStation()
st->loading_vehicles.remove(this);
HideFillingPercent(&this->fill_percent_te_id);
trip_occupancy = CalcPercentVehicleFilled(this, NULL);
if (this->type == VEH_TRAIN && !(this->vehstatus & VS_CRASHED)) {
/* Trigger station animation (trains only) */