diff src/genworld.cpp @ 8303:0ab35f1b5949 draft

(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.
author rubidium <rubidium@openttd.org>
date Tue, 15 Jan 2008 18:51:46 +0000
parents 5613b863190d
children ccf4087c045f
line wrap: on
line diff
--- 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 @@
 		}
 	}
 
+	ClearStorageChanges(true);
+
 	/* These are probably pointless when inside the scenario editor. */
 	SetGeneratingWorldProgress(GWP_GAME_INIT, 3);
 	StartupPlayers();