(svn r19328) -Feature: a more extendable gui for building airports

This commit is contained in:
yexo
2010-03-05 23:21:56 +00:00
parent 585b036c90
commit b8d7680e66
3 changed files with 201 additions and 140 deletions

View File

@@ -71,6 +71,13 @@ struct AirportSpec {
static void ResetAirports();
/** Get the index of this spec. */
byte GetIndex() const
{
assert(this >= specs && this < endof(specs));
return (byte)(this - specs);
}
static AirportSpec dummy;
static AirportSpec oilrig;