mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r1109) Fix c&p bug: In vehicle lists a name was displayed for road vehicles even if they had none
This commit is contained in:
parent
2f6a26ab2d
commit
a2374e2988
@ -795,7 +795,7 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e)
|
|||||||
SetDParam(1, v->profit_last_year);
|
SetDParam(1, v->profit_last_year);
|
||||||
DrawString(x + 24, y + 18, STR_0198_PROFIT_THIS_YEAR_LAST_YEAR, 0);
|
DrawString(x + 24, y + 18, STR_0198_PROFIT_THIS_YEAR_LAST_YEAR, 0);
|
||||||
|
|
||||||
if (v->string_id != STR_SV_TRAIN_NAME) {
|
if (v->string_id != STR_SV_ROADVEH_NAME) {
|
||||||
SetDParam(0, v->string_id);
|
SetDParam(0, v->string_id);
|
||||||
DrawString(x + 24, y, STR_01AB, 0);
|
DrawString(x + 24, y, STR_01AB, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user