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

@@ -32,7 +32,7 @@ void DrawRoadVehDetails(const Vehicle *v, const Rect &r)
StringID str;
Money feeder_share = 0;
SetDParam(0, v->engine_type);
SetDParam(0, PackEngineNameDParam(v->engine_type, EngineNameContext::VehicleDetails));
SetDParam(1, v->build_year);
SetDParam(2, v->value);
DrawString(r.left, r.right, y, STR_VEHICLE_INFO_BUILT_VALUE);