(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

@@ -333,9 +333,6 @@ static void ShutdownGame()
/* stop the AI */
AI::Uninitialize(false);
/* Uninitialize airport state machines */
UnInitializeAirports();
/* Uninitialize variables that are allocated dynamically */
GamelogReset();
_town_pool.CleanPool();
@@ -605,9 +602,6 @@ int ttd_main(int argc, char *argv[])
/* initialize screenshot formats */
InitializeScreenshotFormats();
/* initialize airport state machines */
InitializeAirports();
/* initialize all variables that are allocated dynamically */
InitializeDynamicVariables();