summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-07 08:53:19 +0000
committerrubidium <rubidium@openttd.org>2007-07-07 08:53:19 +0000
commitcd702d049e380478cc527455ee7422b61b33f8ef (patch)
treeb284545aafd09cc7fb92b71fbb6207c155507b8f /src/openttd.cpp
parentb0a840920065bb0768ce280daa3f32d85805db70 (diff)
downloadopenttd-cd702d049e380478cc527455ee7422b61b33f8ef.tar.xz
(svn r10460) -Codechange: add some more variables needed for newindustries regarding to the creation of the industries.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 7f88684e4..bdec37c94 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2080,6 +2080,12 @@ bool AfterLoadGame()
}
}
+ if (CheckSavegameVersion(70)) {
+ /* Added variables to support newindustries */
+ Industry *i;
+ FOR_ALL_INDUSTRIES(i) i->founder = OWNER_NONE;
+ }
+
/* Recalculate */
Group *g;
FOR_ALL_GROUPS(g) {