Feature: [NewGRF] Engine name callback.

This commit is contained in:
Michael Lutz
2023-01-22 22:06:48 +01:00
parent 2d73076056
commit 05ed9f56fd
12 changed files with 60 additions and 17 deletions

View File

@@ -458,7 +458,7 @@ public:
bool when_old = false;
EngineID e = EngineReplacementForCompany(c, this->sel_engine[0], this->sel_group, &when_old);
str = when_old ? STR_REPLACE_REPLACING_WHEN_OLD : STR_ENGINE_NAME;
SetDParam(0, e);
SetDParam(0, PackEngineNameDParam(e, EngineNameContext::PurchaseList));
}
} else {
str = STR_REPLACE_NOT_REPLACING_VEHICLE_SELECTED;