(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

@@ -40,6 +40,12 @@ template <typename Tspec, typename Tid, Tid Tmax>
classes[1].Insert(NULL);
}
template <typename Tspec, typename Tid, Tid Tmax>
bool NewGRFClass<Tspec, Tid, Tmax>::IsUIAvailable(uint index) const
{
return true;
}
INSTANTIATE_NEWGRF_CLASS_METHODS(StationClass, StationSpec, StationClassID, STAT_CLASS_MAX)
static const uint MAX_SPECLIST = 255;