summaryrefslogtreecommitdiff
path: root/airport.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-09 08:49:40 +0000
committercelestar <celestar@openttd.org>2005-01-09 08:49:40 +0000
commite17a8989cf87ee7b94199873429b238e9c0c8d62 (patch)
treebb721cddb60cfba5c5be705c3ef5a06382d8bbb8 /airport.h
parent13dda253341dda556ce063e49ac97b6e6b8f1abf (diff)
downloadopenttd-e17a8989cf87ee7b94199873429b238e9c0c8d62.tar.xz
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
terminals in every group can be freely chosen -Codechange: AT_OILRIG is now 15, so that new airports can be added easily.
Diffstat (limited to 'airport.h')
-rw-r--r--airport.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/airport.h b/airport.h
index f3204a152..5242f995a 100644
--- a/airport.h
+++ b/airport.h
@@ -13,7 +13,7 @@ enum {
AT_HELIPORT = 2,
AT_METROPOLITAN = 3,
AT_INTERNATIONAL = 4,
- AT_OILRIG = 5
+ AT_OILRIG = 15
};
// do not change unless you change v->subtype too. This aligns perfectly with its current setting
@@ -26,10 +26,8 @@ enum {
// Finite sTate mAchine --> FTA
typedef struct AirportFTAClass {
byte nofelements; // number of positions the airport consists of
- byte nofterminals; // number of terminals this airport has
- byte nofterminalgroups; // terminals belong to so many groups (MAX is the nofterminals)
- byte nofhelipads; // number of helipads this airport has
- byte nofhelipadgroups; // helipads belong to so many groups (MAX is the nofhelipads)
+ const byte *terminals;
+ const byte *helipads;
byte entry_point; // when an airplane arrives at this airport, enter it at position entry_point
byte acc_planes; // accept airplanes or helicopters or both
const TileIndexDiffC *airport_depots; // gives the position of the depots on the airports