(svn r16110) -Codechange: use {CARGO} instead hardcoded cargo name (there is always something duplicated :p)

This commit is contained in:
frosch
2009-04-21 16:52:58 +00:00
parent 10c98f7e0e
commit d338fff1b9
43 changed files with 5 additions and 44 deletions

View File

@@ -567,8 +567,10 @@ static int DrawAircraftPurchaseInfo(int left, int right, int y, EngineID engine_
/* Cargo capacity */
if (cargo == CT_INVALID || cargo == CT_PASSENGERS) {
SetDParam(0, e->GetDisplayDefaultCapacity());
SetDParam(1, avi->mail_capacity);
SetDParam(0, CT_PASSENGERS);
SetDParam(1, e->GetDisplayDefaultCapacity());
SetDParam(2, CT_MAIL);
SetDParam(3, avi->mail_capacity);
DrawString(left, right, y, STR_PURCHASE_INFO_AIRCRAFT_CAPACITY, TC_FROMSTRING);
} else {
/* Note, if the default capacity is selected by the refit capacity