File diff r4292:340dc5050536 → r4293:cbb984a32af5
train_gui.c
Show inline comments
 
@@ -64,25 +64,25 @@ void DrawTrainEnginePurchaseInfo(int x, 
 
	/* Cargo type + capacity, or N/A */
 
	SetDParam(0, STR_8838_N_A);
 
	SetDParam(2, STR_EMPTY);
 
	if (rvi->capacity != 0) {
 
		SetDParam(0, _cargoc.names_long[rvi->cargo_type]);
 
		SetDParam(1, rvi->capacity << multihead);
 
		SetDParam(2, STR_9842_REFITTABLE);
 
	}
 
	DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0);
 
	y += 10;
 

	
 
	/* Design date - Life length */
 
	SetDParam(0, BASE_YEAR + ymd.year);
 
	SetDParam(0, ymd.year);
 
	SetDParam(1, e->lifelength);
 
	DrawString(x,y, STR_PURCHASE_INFO_DESIGNED_LIFE, 0);
 
	y += 10;
 

	
 
	/* Reliability */
 
	SetDParam(0, e->reliability * 100 >> 16);
 
	DrawString(x,y, STR_PURCHASE_INFO_RELIABILITY, 0);
 
	y += 10;
 

	
 
	/* Additional text from NewGRF */
 
	// XXX 227 will become a calculated width...
 
	y += ShowAdditionalText(x, y, 227, engine_number);