(svn r24169) -Add: Make NewGRFClass distinguish between defined specs and specs visible for the user.

This commit is contained in:
frosch
2012-04-22 16:28:27 +00:00
parent c45a8e083c
commit ed1fb53859
5 changed files with 42 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ template <typename Tspec, typename Tid, Tid Tmax>
AirportClass::Get(AirportClass::Allocate('HELI'))->name = STR_AIRPORT_CLASS_HELIPORTS;
}
template <typename Tspec, typename Tid, Tid Tmax>
bool NewGRFClass<Tspec, Tid, Tmax>::IsUIAvailable(uint index) const
{
return true;
}
INSTANTIATE_NEWGRF_CLASS_METHODS(AirportClass, AirportSpec, AirportClassID, APC_MAX)