train_gui.c
changeset 4737 287bc9b53ec9
parent 4712 4335ad42e163
child 4764 79341214c15d
equal deleted inserted replaced
4736:56f9dcf1d133 4737:287bc9b53ec9
    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