Changeset - r27961:176c6f6953df
[Not reviewed]
master
0 3 0
Joan Josep - 15 months ago 2023-09-20 21:54:34
juanjo.ng.83@gmail.com
Fix: Allow NewGRF inspection of road tiles. (#11323)
3 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/lang/english.txt
Show inline comments
 
@@ -3400,6 +3400,7 @@ STR_NEWGRF_INSPECT_PARENT_TOOLTIP       
 
STR_NEWGRF_INSPECT_CAPTION_OBJECT_AT                            :{STRING1} at {HEX}
 
STR_NEWGRF_INSPECT_CAPTION_OBJECT_AT_OBJECT                     :Object
 
STR_NEWGRF_INSPECT_CAPTION_OBJECT_AT_RAIL_TYPE                  :Rail type
 
STR_NEWGRF_INSPECT_CAPTION_OBJECT_AT_ROAD_TYPE                  :Road type
 

	
 
STR_NEWGRF_INSPECT_QUERY_CAPTION                                :{WHITE}NewGRF variable 60+x parameter (hexadecimal)
 

	
src/newgrf_debug_gui.cpp
Show inline comments
 
@@ -775,7 +775,7 @@ GrfSpecFeature GetGrfSpecFeature(TileInd
 
	switch (GetTileType(tile)) {
 
		default:              return GSF_INVALID;
 
		case MP_RAILWAY:      return GSF_RAILTYPES;
 
		case MP_ROAD:         return IsLevelCrossing(tile) ? GSF_RAILTYPES : GSF_INVALID;
 
		case MP_ROAD:         return IsLevelCrossing(tile) ? GSF_RAILTYPES : GSF_ROADTYPES;
 
		case MP_HOUSE:        return GSF_HOUSES;
 
		case MP_INDUSTRY:     return GSF_INDUSTRYTILES;
 
		case MP_OBJECT:       return GSF_OBJECTS;
src/table/newgrf_debug_data.h
Show inline comments
 
@@ -632,7 +632,7 @@ class NIHRoadType : public NIHelper {
 
	uint GetParent(uint) const override                  { return UINT32_MAX; }
 
	const void *GetInstance(uint) const override         { return nullptr; }
 
	const void *GetSpec(uint) const override             { return nullptr; }
 
	void SetStringParameters(uint index) const override  { this->SetObjectAtStringParameters(STR_NEWGRF_INSPECT_CAPTION_OBJECT_AT_RAIL_TYPE, INVALID_STRING_ID, index); }
 
	void SetStringParameters(uint index) const override  { this->SetObjectAtStringParameters(STR_NEWGRF_INSPECT_CAPTION_OBJECT_AT_ROAD_TYPE, INVALID_STRING_ID, index); }
 
	uint32_t GetGRFID(uint) const override               { return 0; }
 

	
 
	uint Resolve(uint index, uint var, uint param, bool *avail) const override
0 comments (0 inline, 0 general)