Debug: Industries are now always inspectable in the debug window
This commit is contained in:
@@ -512,7 +512,8 @@ static const NIVariable _niv_industries[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class NIHIndustry : public NIHelper {
|
class NIHIndustry : public NIHelper {
|
||||||
bool IsInspectable(uint index) const override { return GetIndustrySpec(Industry::Get(index)->type)->grf_prop.grffile != nullptr; }
|
bool IsInspectable(uint index) const override { return true; }
|
||||||
|
bool ShowExtraInfoOnly(uint index) const override { return GetIndustrySpec(Industry::Get(index)->type)->grf_prop.grffile == nullptr; }
|
||||||
uint GetParent(uint index) const override { return GetInspectWindowNumber(GSF_FAKE_TOWNS, Industry::Get(index)->town->index); }
|
uint GetParent(uint index) const override { return GetInspectWindowNumber(GSF_FAKE_TOWNS, Industry::Get(index)->town->index); }
|
||||||
const void *GetInstance(uint index)const override { return Industry::Get(index); }
|
const void *GetInstance(uint index)const override { return Industry::Get(index); }
|
||||||
const void *GetSpec(uint index) const override { return GetIndustrySpec(Industry::Get(index)->type); }
|
const void *GetSpec(uint index) const override { return GetIndustrySpec(Industry::Get(index)->type); }
|
||||||
|
Reference in New Issue
Block a user