summaryrefslogtreecommitdiff
path: root/ship_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
commit8411b3b9fe2a27789fb5c36b2165c2c6c8c5708a (patch)
tree6b676140b8977dd0e425e562f8bb9f2d5caa3e6f /ship_gui.c
parent5b72dd22e8f64bf43484fad783e06eff6c71c01a (diff)
downloadopenttd-8411b3b9fe2a27789fb5c36b2165c2c6c8c5708a.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 'ship_gui.c')
-rw-r--r--ship_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 3d16ec0b2..9c7a68686 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -40,7 +40,7 @@ void DrawShipPurchaseInfo(int x, int y, EngineID engine_number)
y += 10;
/* Cargo type + capacity */
- SetDParam(0, _cargoc.names_long[svi->cargo_type]);
+ SetDParam(0, svi->cargo_type);
SetDParam(1, svi->capacity);
SetDParam(2, svi->refittable ? STR_9842_REFITTABLE : STR_EMPTY);
DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0);
@@ -140,7 +140,7 @@ static void ShipDetailsWndProc(Window *w, WindowEvent *e)
SetDParam(2, v->value);
DrawString(74, 57, STR_9816_BUILT_VALUE, 0);
- SetDParam(0, _cargoc.names_long[v->cargo_type]);
+ SetDParam(0, v->cargo_type);
SetDParam(1, v->cargo_cap);
DrawString(74, 67, STR_9817_CAPACITY, 0);