Feature: [NewGRF] Engine name callback.
(cherry picked from commit 05ed9f56fd
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
5daaa45e4a
commit
07c923eceb
@@ -456,7 +456,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;
|
||||
|
Reference in New Issue
Block a user