Feature: [NewGRF] Engine name callback.
This commit is contained in:
@@ -63,7 +63,7 @@ void DrawShipDetails(const Vehicle *v, const Rect &r)
|
||||
{
|
||||
int y = r.top;
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user