diff options
author | alberth <alberth@openttd.org> | 2010-11-13 15:15:25 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-13 15:15:25 +0000 |
commit | f22fb0d53db43e1e9ebeeda01ba8948656d537af (patch) | |
tree | c27fbb704848e8a5ed7f2956be0b2b3ace243c9f /src/saveload | |
parent | 4d419b9f3e058be20f62e494829e8ae1b167e82b (diff) | |
download | openttd-f22fb0d53db43e1e9ebeeda01ba8948656d537af.tar.xz |
(svn r21171) -Change: Reset industry build data at game start or load.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 3 | ||||
-rw-r--r-- | src/saveload/saveload.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 9d9540368..6c6458940 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2319,8 +2319,9 @@ bool AfterLoadGame() } } - if (CheckSavegameVersion(152)) { + _industry_builder.Reset(); // Initialize industry build data. + /* The moment vehicles go from hidden to visible changed. This means * that vehicles don't always get visible anymore causing things to * get messed up just after loading the savegame. This fixes that. */ diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index bcbbcb71d..ba7819a55 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -214,8 +214,9 @@ * 149 20832 * 150 20857 * 151 20918 + * 152 21171 */ -extern const uint16 SAVEGAME_VERSION = 151; ///< current savegame version of OpenTTD +extern const uint16 SAVEGAME_VERSION = 152; ///< Current savegame version of OpenTTD. SavegameType _savegame_type; ///< type of savegame we are loading |