(svn r15480) -Feature(tte): Show the cargo subtype in the vehicle details window.

This commit is contained in:
michi_cc
2009-02-14 18:42:03 +00:00
parent de9c91ecee
commit 0dcf301d6d
56 changed files with 292 additions and 270 deletions

View File

@@ -145,7 +145,8 @@ static void TrainDetailsCapacityTab(const Vehicle *v, int x, int y)
if (v->cargo_cap != 0) {
SetDParam(0, v->cargo_type);
SetDParam(1, v->cargo_cap);
SetDParam(2, _settings_game.vehicle.freight_trains);
SetDParam(2, GetCargoSubtypeText(v));
SetDParam(3, _settings_game.vehicle.freight_trains);
DrawString(x, y, FreightWagonMult(v->cargo_type) > 1 ? STR_CAPACITY_MULT : STR_013F_CAPACITY, TC_FROMSTRING);
}
}