diff options
author | alberth <alberth@openttd.org> | 2012-11-10 20:42:19 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2012-11-10 20:42:19 +0000 |
commit | 37605108e1471e18521bd2be30cecb39c4719ef9 (patch) | |
tree | 4696da5d8b0d4dcbde8872356e33105cd4c16771 /src/table | |
parent | 82e6001451f0dcfd5f85427a1f3a843656292f1e (diff) | |
download | openttd-37605108e1471e18521bd2be30cecb39c4719ef9.tar.xz |
(svn r24686) -Codechange: Add resolver classes for airport tiles.
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/newgrf_debug_data.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index b937eeea7..f843b592e 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -434,7 +434,12 @@ class NIHAirportTile : public NIHelper { const void *GetSpec(uint index) const { return AirportTileSpec::Get(GetAirportGfx(index)); } void SetStringParameters(uint index) const { this->SetObjectAtStringParameters(STR_STATION_NAME, GetStationIndex(index), index); } uint32 GetGRFID(uint index) const { return (this->IsInspectable(index)) ? AirportTileSpec::Get(GetAirportGfx(index))->grf_prop.grffile->grfid : 0; } - void Resolve(ResolverObject *ro, uint32 index) const { extern void GetAirportTileTypeResolver(ResolverObject *ro, uint index); GetAirportTileTypeResolver(ro, index); } + + /* virtual */ uint Resolve(uint index, uint var, uint param, bool *avail) const + { + AirportTileResolverObject ro(AirportTileSpec::GetByTile(index), index, Station::GetByTile(index)); + return ro.GetScope(ro.scope)->GetVariable(var, param, avail); + } }; static const NIFeature _nif_airporttile = { |