forked from mirror/OpenTTD
(svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really convert a Date to/from a YearMonthDay.
-Cleanup: swap ConvertDateToYMD's parameters to make the order consistent with the name of the function.
This commit is contained in:
@@ -53,7 +53,7 @@ void DrawShipPurchaseInfo(int x, int y, EngineID engine_number)
|
||||
|
||||
/* Design date - Life length */
|
||||
e = GetEngine(engine_number);
|
||||
ConvertDayToYMD(&ymd, e->intro_date);
|
||||
ConvertDateToYMD(e->intro_date, &ymd);
|
||||
SetDParam(0, BASE_YEAR + ymd.year);
|
||||
SetDParam(1, e->lifelength);
|
||||
DrawString(x,y, STR_PURCHASE_INFO_DESIGNED_LIFE, 0);
|
||||
|
Reference in New Issue
Block a user