summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2009-02-14 18:42:03 +0000
committermichi_cc <michi_cc@openttd.org>2009-02-14 18:42:03 +0000
commit84deeecc5b21584b7aee023bb820671683cd7ef1 (patch)
tree698f73feb9c82404ea46d6d0fd869f31fe08842d /src/train_gui.cpp
parentb123756c9f2e528c78531376c21112aed57d38a8 (diff)
downloadopenttd-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.cpp3
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);
}
}