mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Debug: Always use head for vehicle debug window name in caption
This commit is contained in:
parent
dbc55274e2
commit
0a99440166
@ -87,7 +87,7 @@ class NIHVehicle : public NIHelper {
|
|||||||
uint GetParent(uint index) const override { const Vehicle *first = Vehicle::Get(index)->First(); return GetInspectWindowNumber(GetGrfSpecFeature(first->type), first->index); }
|
uint GetParent(uint index) const override { const Vehicle *first = Vehicle::Get(index)->First(); return GetInspectWindowNumber(GetGrfSpecFeature(first->type), first->index); }
|
||||||
const void *GetInstance(uint index)const override { return Vehicle::Get(index); }
|
const void *GetInstance(uint index)const override { return Vehicle::Get(index); }
|
||||||
const void *GetSpec(uint index) const override { return Vehicle::Get(index)->GetEngine(); }
|
const void *GetSpec(uint index) const override { return Vehicle::Get(index)->GetEngine(); }
|
||||||
void SetStringParameters(uint index) const override { this->SetSimpleStringParameters(STR_VEHICLE_NAME, index); }
|
void SetStringParameters(uint index) const override { this->SetSimpleStringParameters(STR_VEHICLE_NAME, Vehicle::Get(index)->First()->index); }
|
||||||
uint32 GetGRFID(uint index) const override { return Vehicle::Get(index)->GetGRFID(); }
|
uint32 GetGRFID(uint index) const override { return Vehicle::Get(index)->GetGRFID(); }
|
||||||
|
|
||||||
uint Resolve(uint index, uint var, uint param, GetVariableExtra *extra) const override
|
uint Resolve(uint index, uint var, uint param, GetVariableExtra *extra) const override
|
||||||
|
Loading…
Reference in New Issue
Block a user