diff options
author | michi_cc <michi_cc@openttd.org> | 2009-02-14 18:42:03 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-02-14 18:42:03 +0000 |
commit | 84deeecc5b21584b7aee023bb820671683cd7ef1 (patch) | |
tree | 698f73feb9c82404ea46d6d0fd869f31fe08842d /src/train_gui.cpp | |
parent | b123756c9f2e528c78531376c21112aed57d38a8 (diff) | |
download | openttd-84deeecc5b21584b7aee023bb820671683cd7ef1.tar.xz |
(svn r15480) -Feature(tte): Show the cargo subtype in the vehicle details window.
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 4956c2950..b36b1484a 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -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); } } |