equal
deleted
inserted
replaced
38 SetDParam(1, svi->max_speed / 2); |
38 SetDParam(1, svi->max_speed / 2); |
39 DrawString(x,y, STR_PURCHASE_INFO_COST_SPEED, 0); |
39 DrawString(x,y, STR_PURCHASE_INFO_COST_SPEED, 0); |
40 y += 10; |
40 y += 10; |
41 |
41 |
42 /* Cargo type + capacity */ |
42 /* Cargo type + capacity */ |
43 SetDParam(0, _cargoc.names_long[svi->cargo_type]); |
43 SetDParam(0, svi->cargo_type); |
44 SetDParam(1, svi->capacity); |
44 SetDParam(1, svi->capacity); |
45 SetDParam(2, svi->refittable ? STR_9842_REFITTABLE : STR_EMPTY); |
45 SetDParam(2, svi->refittable ? STR_9842_REFITTABLE : STR_EMPTY); |
46 DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); |
46 DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); |
47 y += 10; |
47 y += 10; |
48 |
48 |
138 SetDParam(1, v->build_year); |
138 SetDParam(1, v->build_year); |
139 SetDParam(0, GetCustomEngineName(v->engine_type)); |
139 SetDParam(0, GetCustomEngineName(v->engine_type)); |
140 SetDParam(2, v->value); |
140 SetDParam(2, v->value); |
141 DrawString(74, 57, STR_9816_BUILT_VALUE, 0); |
141 DrawString(74, 57, STR_9816_BUILT_VALUE, 0); |
142 |
142 |
143 SetDParam(0, _cargoc.names_long[v->cargo_type]); |
143 SetDParam(0, v->cargo_type); |
144 SetDParam(1, v->cargo_cap); |
144 SetDParam(1, v->cargo_cap); |
145 DrawString(74, 67, STR_9817_CAPACITY, 0); |
145 DrawString(74, 67, STR_9817_CAPACITY, 0); |
146 |
146 |
147 str = STR_8812_EMPTY; |
147 str = STR_8812_EMPTY; |
148 if (v->cargo_count != 0) { |
148 if (v->cargo_count != 0) { |