File diff r4292:340dc5050536 → r4293:cbb984a32af5
ship_gui.c
Show inline comments
 
@@ -45,25 +45,25 @@ void DrawShipPurchaseInfo(int x, int y, 
 
	SetDParam(2, svi->refittable ? STR_9842_REFITTABLE : STR_EMPTY);
 
	DrawString(x,y, STR_PURCHASE_INFO_CAPACITY, 0);
 
	y += 10;
 

	
 
	/* Running cost */
 
	SetDParam(0, svi->running_cost * _price.ship_running >> 8);
 
	DrawString(x,y, STR_PURCHASE_INFO_RUNNINGCOST, 0);
 
	y += 10;
 

	
 
	/* Design date - Life length */
 
	e = GetEngine(engine_number);
 
	ConvertDateToYMD(e->intro_date, &ymd);
 
	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);