(svn r23604) -Add: initial support for GameScripts

This commit is contained in:
truebrain
2011-12-19 20:50:54 +00:00
parent 5cda1d7c90
commit 12aa5b6a58
33 changed files with 729 additions and 37 deletions

View File

@@ -62,6 +62,7 @@
#include "hotkeys.h"
#include "newgrf.h"
#include "misc/getoptdata.h"
#include "game/game.hpp"
#include "town.h"
@@ -284,8 +285,9 @@ static void ShutdownGame()
UnInitWindowSystem();
/* stop the AI */
/* stop the scripts */
AI::Uninitialize(false);
Game::Uninitialize();
/* Uninitialize variables that are allocated dynamically */
GamelogReset();
@@ -1253,6 +1255,7 @@ void StateGameLoop()
/* dont execute the state loop during pause */
if (_pause_mode != PM_UNPAUSED) {
UpdateLandscapingLimits();
Game::GameLoop();
CallWindowTickEvent();
return;
}
@@ -1291,6 +1294,7 @@ void StateGameLoop()
ClearStorageChanges(true);
AI::GameLoop();
Game::GameLoop();
UpdateLandscapingLimits();
CallWindowTickEvent();