diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 10:14:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 10:14:29 +0000 |
commit | 062dd0e24c283f210216ede06bbde0ed72c7ed25 (patch) | |
tree | a917e975f1f5d4c144ecad2c799cf58764a1f592 /src/airport.h | |
parent | a2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 (diff) | |
download | openttd-062dd0e24c283f210216ede06bbde0ed72c7ed25.tar.xz |
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/airport.h')
-rw-r--r-- | src/airport.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/airport.h b/src/airport.h index 7a0cdf54a..0733c9ab2 100644 --- a/src/airport.h +++ b/src/airport.h @@ -16,14 +16,13 @@ #include "tile_type.h" /** Some airport-related constants */ -enum { - MAX_TERMINALS = 10, ///< maximum number of terminals per airport - MAX_HELIPADS = 4, ///< maximum number of helipads per airport - MAX_ELEMENTS = 255, ///< maximum number of aircraft positions at airport - NUM_AIRPORTTILES = 256, ///< total number of airport tiles - NEW_AIRPORTTILE_OFFSET = 74, ///< offset of first newgrf airport tile - INVALID_AIRPORTTILE = NUM_AIRPORTTILES, ///< id for an invalid airport tile -}; +static const uint MAX_TERMINALS = 10; ///< maximum number of terminals per airport +static const uint MAX_HELIPADS = 4; ///< maximum number of helipads per airport +static const uint MAX_ELEMENTS = 255; ///< maximum number of aircraft positions at airport + +static const uint NUM_AIRPORTTILES = 256; ///< total number of airport tiles +static const uint NEW_AIRPORTTILE_OFFSET = 74; ///< offset of first newgrf airport tile +static const uint INVALID_AIRPORTTILE = NUM_AIRPORTTILES; ///< id for an invalid airport tile /** Airport types */ enum AirportTypes { |