diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:56:34 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:56:34 +0000 |
commit | f239a6140616340854b2330b75f44abad01ae0a2 (patch) | |
tree | 0db054cc972e2638417423a0a89ee17bfbbfc38d /src/genworld.cpp | |
parent | de5494af8ff51e7accfe2c73092873574a9edbf0 (diff) | |
download | openttd-f239a6140616340854b2330b75f44abad01ae0a2.tar.xz |
(svn r23609) -Add: save/load all GameScript related material
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r-- | src/genworld.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp index e450aa2b9..f36837879 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -33,6 +33,7 @@ #include "core/backup_type.hpp" #include "progress.h" #include "error.h" +#include "game/game.hpp" #include "table/sprites.h" @@ -162,6 +163,10 @@ static void _GenerateWorld(void *) RunTileLoop(); IncreaseGeneratingWorldProgress(GWP_RUNTILELOOP); } + + if (_game_mode != GM_EDITOR) { + Game::StartNew(); + } } ResetObjectToPlace(); |