(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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user