equal
deleted
inserted
replaced
64 /* Cargo type + capacity, or N/A */ |
64 /* Cargo type + capacity, or N/A */ |
65 SetDParam(0, STR_8838_N_A); |
65 SetDParam(0, STR_8838_N_A); |
66 SetDParam(2, STR_EMPTY); |
66 SetDParam(2, STR_EMPTY); |
67 if (rvi->capacity != 0) { |
67 if (rvi->capacity != 0) { |
68 SetDParam(0, _cargoc.names_long[rvi->cargo_type]); |
68 SetDParam(0, _cargoc.names_long[rvi->cargo_type]); |
69 SetDParam(1, rvi->capacity << multihead); |
69 SetDParam(1, (rvi->capacity * (CountArticulatedParts(engine_number) + 1)) << multihead); |
70 SetDParam(2, STR_9842_REFITTABLE); |
70 SetDParam(2, STR_9842_REFITTABLE); |
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 |
112 /* Cargo type + capacity, or N/A */ |
112 /* Cargo type + capacity, or N/A */ |
113 SetDParam(0, STR_8838_N_A); |
113 SetDParam(0, STR_8838_N_A); |
114 SetDParam(2, STR_EMPTY); |
114 SetDParam(2, STR_EMPTY); |
115 if (rvi->capacity != 0) { |
115 if (rvi->capacity != 0) { |
116 SetDParam(0, _cargoc.names_long[rvi->cargo_type]); |
116 SetDParam(0, _cargoc.names_long[rvi->cargo_type]); |
117 SetDParam(1, rvi->capacity); |
117 SetDParam(1, rvi->capacity * (CountArticulatedParts(engine_number) + 1)); |
118 SetDParam(2, refittable ? STR_9842_REFITTABLE : STR_EMPTY); |
118 SetDParam(2, refittable ? STR_9842_REFITTABLE : STR_EMPTY); |
119 } |
119 } |
120 DrawString(x, y, STR_PURCHASE_INFO_CAPACITY, 0); |
120 DrawString(x, y, STR_PURCHASE_INFO_CAPACITY, 0); |
121 y += 10; |
121 y += 10; |
122 |
122 |