summaryrefslogtreecommitdiff
path: root/src/genworld.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-15 18:51:46 +0000
committerrubidium <rubidium@openttd.org>2008-01-15 18:51:46 +0000
commit6891bc2011621e9053c6e46d1c04a02431c93d81 (patch)
treecd46862cea14e32a966c0a3410d73ba666ef2ea4 /src/genworld.cpp
parent576f8ad93e5eb2d2c2777ae1e448ae80e80d14ba (diff)
downloadopenttd-6891bc2011621e9053c6e46d1c04a02431c93d81.tar.xz
(svn r11867) -Fix: do not reset changes to persistent storages during world generation.
-Fix: store changes to persistent storages after performing all the game logic instead of resetting them.
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r--src/genworld.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp
index 27ea4fd4d..c6c15cc39 100644
--- a/src/genworld.cpp
+++ b/src/genworld.cpp
@@ -23,6 +23,7 @@
#include "core/random_func.hpp"
#include "engine.h"
#include "settings_type.h"
+#include "newgrf_storage.h"
#include "table/sprites.h"
@@ -118,6 +119,8 @@ static void *_GenerateWorld(void *arg)
}
}
+ ClearStorageChanges(true);
+
/* These are probably pointless when inside the scenario editor. */
SetGeneratingWorldProgress(GWP_GAME_INIT, 3);
StartupPlayers();