diff options
author | peter1138 <peter1138@openttd.org> | 2006-10-20 11:53:29 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-10-20 11:53:29 +0000 |
commit | 8411b3b9fe2a27789fb5c36b2165c2c6c8c5708a (patch) | |
tree | 6b676140b8977dd0e425e562f8bb9f2d5caa3e6f /aircraft_gui.c | |
parent | 5b72dd22e8f64bf43484fad783e06eff6c71c01a (diff) | |
download | openttd-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 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index 39f6c7a3d..3800254e6 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -95,10 +95,10 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) DrawString(60, y, STR_A011_BUILT_VALUE, 0); y += 10; - SetDParam(0, _cargoc.names_long[v->cargo_type]); + SetDParam(0, v->cargo_type); SetDParam(1, v->cargo_cap); u = v->next; - SetDParam(2, _cargoc.names_long[u->cargo_type]); + SetDParam(2, u->cargo_type); SetDParam(3, u->cargo_cap); DrawString(60, y, (u->cargo_cap != 0) ? STR_A019_CAPACITY : STR_A01A_CAPACITY, 0); y += 14; |