summaryrefslogtreecommitdiff
path: root/src/airport.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-28 21:54:03 +0000
committersmatz <smatz@openttd.org>2009-05-28 21:54:03 +0000
commit1ad410dc009991c511974c9d1794dbf087276b50 (patch)
tree0dd78b7a36849c6ee460d51c53b274d2114662db /src/airport.h
parent62a2dff61e5e41805bd85dded45bf11ba91611c8 (diff)
downloadopenttd-1ad410dc009991c511974c9d1794dbf087276b50.tar.xz
(svn r16458) -Codechange: use one enum instead of four
Diffstat (limited to 'src/airport.h')
-rw-r--r--src/airport.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/airport.h b/src/airport.h
index 2a763f1c5..47f852a17 100644
--- a/src/airport.h
+++ b/src/airport.h
@@ -9,12 +9,14 @@
#include "map_type.h"
#include "tile_type.h"
-enum {MAX_TERMINALS = 10};
-enum {MAX_HELIPADS = 4};
-enum {MAX_ELEMENTS = 255};
-enum {MAX_HEADINGS = 22};
+/** Current limits for airports */
+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
+};
-/* Airport types */
+/** Airport types */
enum {
AT_SMALL = 0,
AT_LARGE = 1,
@@ -66,7 +68,8 @@ enum {
TERM7 = 19,
TERM8 = 20,
HELIPAD3 = 21,
- HELIPAD4 = 22
+ HELIPAD4 = 22,
+ MAX_HEADINGS = 22,
};
/* Movement Blocks on Airports