summaryrefslogtreecommitdiff
path: root/station_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-20 11:53:29 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-20 11:53:29 +0000
commit68dda86c5bbe2d663edb19699f58208f1d5a6f6e (patch)
tree6b676140b8977dd0e425e562f8bb9f2d5caa3e6f /station_gui.c
parent4b674976d55e6cc2236429b286ce6f40f771b3ea (diff)
downloadopenttd-68dda86c5bbe2d663edb19699f58208f1d5a6f6e.tar.xz
(svn r6855) - Codechange: When displaying a "quantity of cargo" string, use the {CARGO} command and supply the cargo type and quantity, instead of manually looking up the cargo type's string.
Diffstat (limited to 'station_gui.c')
-rw-r--r--station_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/station_gui.c b/station_gui.c
index eb095f8d9..a28a54393 100644
--- a/station_gui.c
+++ b/station_gui.c
@@ -612,7 +612,7 @@ static void DrawStationViewWindow(Window *w)
if ( st->goods[i].enroute_from == station_id) {
if (--pos < 0) {
SetDParam(1, waiting);
- SetDParam(0, _cargoc.names_long[i]);
+ SetDParam(0, i);
DrawStringRightAligned(x + 234, y, STR_0009, 0);
y += 10;
}
@@ -620,7 +620,7 @@ static void DrawStationViewWindow(Window *w)
/* enroute */
if (--pos < 0) {
SetDParam(1, waiting);
- SetDParam(0, _cargoc.names_long[i]);
+ SetDParam(0, i);
DrawStringRightAligned(x + 234, y, STR_000A_EN_ROUTE_FROM, 0);
y += 10;
}