diff options
author | frosch <frosch@openttd.org> | 2021-01-10 14:37:40 +0100 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2021-01-10 21:24:38 +0100 |
commit | 868d84bbfc8d2c1471ef713854dd05ebc872615a (patch) | |
tree | eaad084698335fd20cd31e01729fa6e0eec9fa47 /src/newgrf_roadtype.h | |
parent | 5b089605606ecbf6d7e9996b49f6cb0605deaa68 (diff) | |
download | openttd-868d84bbfc8d2c1471ef713854dd05ebc872615a.tar.xz |
Add: [NewGRF] vehicle variable 63 to test the tracktype of the current tile against a given tracktype.
Diffstat (limited to 'src/newgrf_roadtype.h')
-rw-r--r-- | src/newgrf_roadtype.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_roadtype.h b/src/newgrf_roadtype.h index 07451f656..0e0869793 100644 --- a/src/newgrf_roadtype.h +++ b/src/newgrf_roadtype.h @@ -48,6 +48,7 @@ struct RoadTypeResolverObject : public ResolverObject { SpriteID GetCustomRoadSprite(const RoadTypeInfo *rti, TileIndex tile, RoadTypeSpriteGroup rtsg, TileContext context = TCX_NORMAL, uint *num_results = nullptr); +RoadType GetRoadTypeTranslation(RoadTramType rtt, uint8 tracktype, const GRFFile *grffile); uint8 GetReverseRoadTypeTranslation(RoadType roadtype, const GRFFile *grffile); #endif /* NEWGRF_ROADTYPE_H */ |