summaryrefslogtreecommitdiff
path: root/src/genworld.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 20:56:34 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 20:56:34 +0000
commitf239a6140616340854b2330b75f44abad01ae0a2 (patch)
tree0db054cc972e2638417423a0a89ee17bfbbfc38d /src/genworld.cpp
parentde5494af8ff51e7accfe2c73092873574a9edbf0 (diff)
downloadopenttd-f239a6140616340854b2330b75f44abad01ae0a2.tar.xz
(svn r23609) -Add: save/load all GameScript related material
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r--src/genworld.cpp5
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();