src/build_vehicle_gui.cpp
changeset 5815 1af8b7c2f257
parent 5802 e770857f092f
child 5816 ddd0bcff1cb2
equal deleted inserted replaced
5814:84472a29b9e4 5815:1af8b7c2f257
   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;