1005 |
1004 |
1006 DrawRoadVehImage(v, x + 22, y + 6, INVALID_VEHICLE); |
1005 DrawRoadVehImage(v, x + 22, y + 6, INVALID_VEHICLE); |
1007 DrawVehicleProfitButton(v, x, y + 13); |
1006 DrawVehicleProfitButton(v, x, y + 13); |
1008 |
1007 |
1009 SetDParam(0, v->unitnumber); |
1008 SetDParam(0, v->unitnumber); |
1010 if (IsRoadVehInDepot(v)) |
1009 if (IsRoadVehInDepot(v)) { |
1011 str = STR_021F; |
1010 str = STR_021F; |
1012 else |
1011 } else { |
1013 str = v->age > v->max_age - 366 ? STR_00E3 : STR_00E2; |
1012 str = v->age > v->max_age - 366 ? STR_00E3 : STR_00E2; |
|
1013 } |
1014 DrawString(x, y + 2, str, 0); |
1014 DrawString(x, y + 2, str, 0); |
1015 |
1015 |
1016 SetDParam(0, v->profit_this_year); |
1016 SetDParam(0, v->profit_this_year); |
1017 SetDParam(1, v->profit_last_year); |
1017 SetDParam(1, v->profit_last_year); |
1018 DrawString(x + 24, y + 18, STR_0198_PROFIT_THIS_YEAR_LAST_YEAR, 0); |
1018 DrawString(x + 24, y + 18, STR_0198_PROFIT_THIS_YEAR_LAST_YEAR, 0); |