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 | 68dda86c5bbe2d663edb19699f58208f1d5a6f6e (patch) | |
tree | 6b676140b8977dd0e425e562f8bb9f2d5caa3e6f /vehicle_gui.c | |
parent | 4b674976d55e6cc2236429b286ce6f40f771b3ea (diff) | |
download | openttd-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 'vehicle_gui.c')
-rw-r--r-- | vehicle_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index 41bb10a67..1787bda48 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -359,7 +359,7 @@ static void VehicleRefitWndProc(Window *w, WindowEvent *e) cost = DoCommand(v->tile, v->index, WP(w,refit_d).cargo->cargo | WP(w,refit_d).cargo->subtype << 8, DC_QUERY_COST, cost); if (!CmdFailed(cost)) { - SetDParam(0, _cargoc.names_long[WP(w,refit_d).cargo->cargo]); + SetDParam(0, WP(w,refit_d).cargo->cargo); SetDParam(1, _returned_refit_capacity); SetDParam(2, cost); DrawString(2, w->widget[5].top + 1, STR_9840_NEW_CAPACITY_COST_OF_REFIT, 0); |