(svn r19353) -Codechange: use static objects for the airport statemachines instead of new/delete at the start/end of the game

-Codechange: store the fta in AirportSpec
This commit is contained in:
yexo
2010-03-06 15:38:13 +00:00
parent 128ef7617d
commit 79a8345749
6 changed files with 56 additions and 107 deletions

View File

@@ -49,6 +49,7 @@ enum TTDPAirportType {
* Defines the data structure for an airport.
*/
struct AirportSpec {
const struct AirportFTAClass *fsm; ///< the finite statemachine for the default airports
const AirportTileTable * const *table; ///< list of the tiles composing the airport
const TileIndexDiffC *depot_table; ///< gives the position of the depots on the airports
byte nof_depots; ///< the number of depots in this airport