diff options
author | michi_cc <michi_cc@openttd.org> | 2012-04-17 19:43:52 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-04-17 19:43:52 +0000 |
commit | f3e295b4ec077f3f0ee9b82e12cb9c8eb5ceffc4 (patch) | |
tree | 23420ff202548b6af0e0b1d620b7a237ba10995e /src/saveload | |
parent | 181de38ae3b682e7d913862b9fe6124cd02fdccb (diff) | |
download | openttd-f3e295b4ec077f3f0ee9b82e12cb9c8eb5ceffc4.tar.xz |
(svn r24134) -Add: Configurable limits for tree planting.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 6 | ||||
-rw-r--r-- | src/saveload/company_sl.cpp | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index b800fe087..f83979bd4 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2736,6 +2736,12 @@ bool AfterLoadGame() } } + if (IsSavegameVersionBefore(175)) { + /* Introduced tree planting limit. */ + Company *c; + FOR_ALL_COMPANIES(c) c->tree_limit = _settings_game.construction.tree_frame_burst << 16; + } + /* Road stops is 'only' updating some caches */ AfterLoadRoadStops(); AfterLoadLabelMaps(); diff --git a/src/saveload/company_sl.cpp b/src/saveload/company_sl.cpp index e9cd02d95..34309bf9a 100644 --- a/src/saveload/company_sl.cpp +++ b/src/saveload/company_sl.cpp @@ -289,6 +289,7 @@ static const SaveLoad _company_desc[] = { SLE_CONDVAR(CompanyProperties, terraform_limit, SLE_UINT32, 156, SL_MAX_VERSION), SLE_CONDVAR(CompanyProperties, clear_limit, SLE_UINT32, 156, SL_MAX_VERSION), + SLE_CONDVAR(CompanyProperties, tree_limit, SLE_UINT32, 175, SL_MAX_VERSION), SLE_END() }; |