diff options
author | rubidium <rubidium@openttd.org> | 2010-04-24 13:35:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-04-24 13:35:18 +0000 |
commit | 1da0086a4537487e12d1ae3c0c9d57079349000d (patch) | |
tree | 1dad6fdf48230934b01963ae9af3a4157f889df9 /src/newgrf_station.cpp | |
parent | e75e2648fc5a9c741629ef1efc8a097c655ed035 (diff) | |
download | openttd-1da0086a4537487e12d1ae3c0c9d57079349000d.tar.xz |
(svn r19707) -Add: helper functions to instantiate/fill ResolverObjects
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 0f4973da4..56e8a5d48 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -1081,3 +1081,13 @@ void StationUpdateAnimTriggers(BaseStation *st) if (ss != NULL) st->cached_anim_triggers |= ss->anim_triggers; } } + +/** + * Resolve a station's spec and such so we can get a variable. + * @param ro The resolver object to fill. + * @param index The station to get the data from. + */ +void GetStationResolver(ResolverObject *ro, uint index) +{ + NewStationResolver(ro, GetStationSpec(index), Station::GetByTile(index), index); +} |