Fix inconsistent order of ship running cost and capacity
This commit is contained in:
@@ -980,6 +980,11 @@ static int DrawShipPurchaseInfo(int left, int right, int y, EngineID engine_numb
|
||||
y += GetCharacterHeight(FS_NORMAL);
|
||||
}
|
||||
|
||||
/* Running cost */
|
||||
SetDParam(0, e->GetDisplayRunningCost());
|
||||
DrawString(left, right, y, STR_PURCHASE_INFO_RUNNINGCOST);
|
||||
y += GetCharacterHeight(FS_NORMAL);
|
||||
|
||||
if (!IsArticulatedEngine(engine_number)) {
|
||||
/* Cargo type + capacity */
|
||||
SetDParam(0, te.cargo);
|
||||
@@ -989,11 +994,6 @@ static int DrawShipPurchaseInfo(int left, int right, int y, EngineID engine_numb
|
||||
y += GetCharacterHeight(FS_NORMAL);
|
||||
}
|
||||
|
||||
/* Running cost */
|
||||
SetDParam(0, e->GetDisplayRunningCost());
|
||||
DrawString(left, right, y, STR_PURCHASE_INFO_RUNNINGCOST);
|
||||
y += GetCharacterHeight(FS_NORMAL);
|
||||
|
||||
return y;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user