From 1da0086a4537487e12d1ae3c0c9d57079349000d Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 24 Apr 2010 13:35:18 +0000 Subject: (svn r19707) -Add: helper functions to instantiate/fill ResolverObjects --- src/newgrf_railtype.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/newgrf_railtype.cpp') diff --git a/src/newgrf_railtype.cpp b/src/newgrf_railtype.cpp index 931f544e9..4a40d6605 100644 --- a/src/newgrf_railtype.cpp +++ b/src/newgrf_railtype.cpp @@ -113,3 +113,13 @@ uint8 GetReverseRailTypeTranslation(RailType railtype, const GRFFile *grffile) /* If not found, return as invalid */ return 0xFF; } + +/** + * Resolve a railtypes's spec and such so we can get a variable. + * @param ro The resolver object to fill. + * @param index The rail tile to get the data from. + */ +void GetRailTypeResolver(ResolverObject *ro, uint index) +{ + NewRailTypeResolver(ro, index); +} -- cgit v1.2.3-54-g00ecf