summaryrefslogtreecommitdiff
path: root/src/newgrf_railtype.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2021-01-10 14:37:40 +0100
committerfrosch <github@elsenhans.name>2021-01-10 21:24:38 +0100
commit868d84bbfc8d2c1471ef713854dd05ebc872615a (patch)
treeeaad084698335fd20cd31e01729fa6e0eec9fa47 /src/newgrf_railtype.h
parent5b089605606ecbf6d7e9996b49f6cb0605deaa68 (diff)
downloadopenttd-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_railtype.h')
-rw-r--r--src/newgrf_railtype.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_railtype.h b/src/newgrf_railtype.h
index 1e0ff01d8..c38211738 100644
--- a/src/newgrf_railtype.h
+++ b/src/newgrf_railtype.h
@@ -58,6 +58,7 @@ struct RailTypeResolverObject : public ResolverObject {
SpriteID GetCustomRailSprite(const RailtypeInfo *rti, TileIndex tile, RailTypeSpriteGroup rtsg, TileContext context = TCX_NORMAL, uint *num_results = nullptr);
SpriteID GetCustomSignalSprite(const RailtypeInfo *rti, TileIndex tile, SignalType type, SignalVariant var, SignalState state, bool gui = false);
+RailType GetRailTypeTranslation(uint8 railtype, const GRFFile *grffile);
uint8 GetReverseRailTypeTranslation(RailType railtype, const GRFFile *grffile);
#endif /* NEWGRF_RAILTYPE_H */