equal
deleted
inserted
replaced
71 } |
71 } |
72 DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); |
72 DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); |
73 y += 10; |
73 y += 10; |
74 |
74 |
75 /* Design date - Life length */ |
75 /* Design date - Life length */ |
76 SetDParam(0, ymd.year + 1920); |
76 SetDParam(0, BASE_YEAR + ymd.year); |
77 SetDParam(1, e->lifelength); |
77 SetDParam(1, e->lifelength); |
78 DrawString(x,y, STR_PURCHASE_INFO_DESIGNED_LIFE, 0); |
78 DrawString(x,y, STR_PURCHASE_INFO_DESIGNED_LIFE, 0); |
79 y += 10; |
79 y += 10; |
80 |
80 |
81 /* Reliability */ |
81 /* Reliability */ |
1113 { |
1113 { |
1114 const RailVehicleInfo *rvi = RailVehInfo(v->engine_type); |
1114 const RailVehicleInfo *rvi = RailVehInfo(v->engine_type); |
1115 |
1115 |
1116 if (!(rvi->flags & RVI_WAGON)) { |
1116 if (!(rvi->flags & RVI_WAGON)) { |
1117 SetDParam(0, GetCustomEngineName(v->engine_type)); |
1117 SetDParam(0, GetCustomEngineName(v->engine_type)); |
1118 SetDParam(1, v->build_year + 1920); |
1118 SetDParam(1, BASE_YEAR + v->build_year); |
1119 SetDParam(2, v->value); |
1119 SetDParam(2, v->value); |
1120 DrawString(x, y, STR_882C_BUILT_VALUE, 0x10); |
1120 DrawString(x, y, STR_882C_BUILT_VALUE, 0x10); |
1121 } else { |
1121 } else { |
1122 SetDParam(0, GetCustomEngineName(v->engine_type)); |
1122 SetDParam(0, GetCustomEngineName(v->engine_type)); |
1123 SetDParam(1, v->value); |
1123 SetDParam(1, v->value); |