267 DrawString(x,y, STR_PURCHASE_INFO_PWAGPOWER_PWAGWEIGHT, 0); |
267 DrawString(x,y, STR_PURCHASE_INFO_PWAGPOWER_PWAGWEIGHT, 0); |
268 y += 10; |
268 y += 10; |
269 }; |
269 }; |
270 |
270 |
271 /* Cargo type + capacity, or N/A */ |
271 /* Cargo type + capacity, or N/A */ |
272 SetDParam(0, STR_8838_N_A); |
272 if (rvi->capacity == 0) { |
273 SetDParam(2, STR_EMPTY); |
273 SetDParam(0, CT_INVALID); |
274 if (rvi->capacity != 0) { |
274 SetDParam(2, STR_EMPTY); |
|
275 } else { |
275 SetDParam(0, rvi->cargo_type); |
276 SetDParam(0, rvi->cargo_type); |
276 SetDParam(1, (rvi->capacity * (CountArticulatedParts(engine_number) + 1)) << multihead); |
277 SetDParam(1, (rvi->capacity * (CountArticulatedParts(engine_number) + 1)) << multihead); |
277 SetDParam(2, STR_9842_REFITTABLE); |
278 SetDParam(2, STR_9842_REFITTABLE); |
278 } |
279 } |
279 DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); |
280 DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); |
315 SetDParam(1, (_cargoc.weights[rvi->cargo_type] * rvi->capacity >> 4) + rvi->weight); |
316 SetDParam(1, (_cargoc.weights[rvi->cargo_type] * rvi->capacity >> 4) + rvi->weight); |
316 DrawString(x, y, STR_PURCHASE_INFO_WEIGHT_CWEIGHT, 0); |
317 DrawString(x, y, STR_PURCHASE_INFO_WEIGHT_CWEIGHT, 0); |
317 y += 10; |
318 y += 10; |
318 |
319 |
319 /* Cargo type + capacity, or N/A */ |
320 /* Cargo type + capacity, or N/A */ |
320 SetDParam(0, STR_8838_N_A); |
321 if (rvi->capacity == 0) { |
321 SetDParam(2, STR_EMPTY); |
322 SetDParam(0, CT_INVALID); |
322 if (rvi->capacity != 0) { |
323 SetDParam(2, STR_EMPTY); |
|
324 } else { |
323 SetDParam(0, rvi->cargo_type); |
325 SetDParam(0, rvi->cargo_type); |
324 SetDParam(1, rvi->capacity * (CountArticulatedParts(engine_number) + 1)); |
326 SetDParam(1, rvi->capacity * (CountArticulatedParts(engine_number) + 1)); |
325 SetDParam(2, refittable ? STR_9842_REFITTABLE : STR_EMPTY); |
327 SetDParam(2, refittable ? STR_9842_REFITTABLE : STR_EMPTY); |
326 } |
328 } |
327 DrawString(x, y, STR_PURCHASE_INFO_CAPACITY, 0); |
329 DrawString(x, y, STR_PURCHASE_INFO_CAPACITY, 0); |