equal
deleted
inserted
replaced
1 #include "stdafx.h" |
1 #include "stdafx.h" |
|
2 #include "ttd.h" |
2 #include "airport.h" |
3 #include "airport.h" |
3 |
4 |
4 AirportFTAClass *CountryAirport; |
5 AirportFTAClass *CountryAirport; |
5 AirportFTAClass *CityAirport; |
6 AirportFTAClass *CityAirport; |
6 AirportFTAClass *Heliport, *Oilrig; |
7 AirportFTAClass *Heliport, *Oilrig; |
90 Airport->airport_depots = (uint16*)depots; |
91 Airport->airport_depots = (uint16*)depots; |
91 |
92 |
92 |
93 |
93 // build the state machine |
94 // build the state machine |
94 AirportBuildAutomata(Airport, FA); |
95 AirportBuildAutomata(Airport, FA); |
95 // DEBUG(misc, 1) ("#Elements %2d; #Terminals %2d in %d group(s); #Helipads %2d in %d group(s)", Airport->nofelements, |
96 DEBUG(misc, 1) ("#Elements %2d; #Terminals %2d in %d group(s); #Helipads %2d in %d group(s)", Airport->nofelements, |
96 // Airport->nofterminals, Airport->nofterminalgroups, Airport->nofhelipads, Airport->nofhelipadgroups); |
97 Airport->nofterminals, Airport->nofterminalgroups, Airport->nofhelipads, Airport->nofhelipadgroups); |
97 |
98 |
98 |
99 |
99 { |
100 { |
100 byte _retval = AirportTestFTA(Airport); |
101 byte _retval = AirportTestFTA(Airport); |
101 if (_retval != MAX_ELEMENTS) {printf("ERROR with element: %d\n", _retval-1);} |
102 if (_retval != MAX_ELEMENTS) {printf("ERROR with element: %d\n", _retval-1);} |