diff options
author | rubidium <rubidium@openttd.org> | 2008-01-15 18:51:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-15 18:51:46 +0000 |
commit | 6891bc2011621e9053c6e46d1c04a02431c93d81 (patch) | |
tree | cd46862cea14e32a966c0a3410d73ba666ef2ea4 /src/genworld.cpp | |
parent | 576f8ad93e5eb2d2c2777ae1e448ae80e80d14ba (diff) | |
download | openttd-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.cpp | 3 |
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(); |