Fix duplication of capacity display in build window for multi-cargo ships
This commit is contained in:
@@ -985,12 +985,14 @@ static int DrawShipPurchaseInfo(int left, int right, int y, EngineID engine_numb
|
|||||||
y += FONT_HEIGHT_NORMAL;
|
y += FONT_HEIGHT_NORMAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cargo type + capacity */
|
if (!IsArticulatedEngine(engine_number)) {
|
||||||
SetDParam(0, te.cargo);
|
/* Cargo type + capacity */
|
||||||
SetDParam(1, te.capacity);
|
SetDParam(0, te.cargo);
|
||||||
SetDParam(2, refittable ? STR_PURCHASE_INFO_REFITTABLE : STR_EMPTY);
|
SetDParam(1, te.capacity);
|
||||||
DrawString(left, right, y, STR_PURCHASE_INFO_CAPACITY);
|
SetDParam(2, refittable ? STR_PURCHASE_INFO_REFITTABLE : STR_EMPTY);
|
||||||
y += FONT_HEIGHT_NORMAL;
|
DrawString(left, right, y, STR_PURCHASE_INFO_CAPACITY);
|
||||||
|
y += FONT_HEIGHT_NORMAL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Running cost */
|
/* Running cost */
|
||||||
SetDParam(0, e->GetDisplayRunningCost());
|
SetDParam(0, e->GetDisplayRunningCost());
|
||||||
|
Reference in New Issue
Block a user