equal
deleted
inserted
replaced
547 if (rvi->capacity == 0) { |
547 if (rvi->capacity == 0) { |
548 SetDParam(0, CT_INVALID); |
548 SetDParam(0, CT_INVALID); |
549 SetDParam(2, STR_EMPTY); |
549 SetDParam(2, STR_EMPTY); |
550 } else { |
550 } else { |
551 int multihead = (rvi->flags & RVI_MULTIHEAD ? 1 : 0); |
551 int multihead = (rvi->flags & RVI_MULTIHEAD ? 1 : 0); |
|
552 bool refittable = (EngInfo(engine_number)->refit_mask != 0); |
|
553 |
552 SetDParam(0, rvi->cargo_type); |
554 SetDParam(0, rvi->cargo_type); |
553 SetDParam(1, (rvi->capacity * (CountArticulatedParts(engine_number) + 1)) << multihead); |
555 SetDParam(1, (rvi->capacity * (CountArticulatedParts(engine_number) + 1)) << multihead); |
554 SetDParam(2, STR_9842_REFITTABLE); |
556 SetDParam(2, refittable ? STR_9842_REFITTABLE : STR_EMPTY); |
555 } |
557 } |
556 DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); |
558 DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0); |
557 y += 10; |
559 y += 10; |
558 } |
560 } |
559 break; |
561 break; |