summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-04-17 19:43:52 +0000
committermichi_cc <michi_cc@openttd.org>2012-04-17 19:43:52 +0000
commitf3e295b4ec077f3f0ee9b82e12cb9c8eb5ceffc4 (patch)
tree23420ff202548b6af0e0b1d620b7a237ba10995e /src/company_cmd.cpp
parent181de38ae3b682e7d913862b9fe6124cd02fdccb (diff)
downloadopenttd-f3e295b4ec077f3f0ee9b82e12cb9c8eb5ceffc4.tar.xz
(svn r24134) -Add: Configurable limits for tree planting.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 2850ad912..1ea293833 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -59,6 +59,7 @@ Company::Company(uint16 name_1, bool is_ai)
this->is_ai = is_ai;
this->terraform_limit = _settings_game.construction.terraform_frame_burst << 16;
this->clear_limit = _settings_game.construction.clear_frame_burst << 16;
+ this->tree_limit = _settings_game.construction.tree_frame_burst << 16;
for (uint j = 0; j < 4; j++) this->share_owners[j] = COMPANY_SPECTATOR;
InvalidateWindowData(WC_PERFORMANCE_DETAIL, 0, INVALID_COMPANY);
@@ -260,6 +261,7 @@ void UpdateLandscapingLimits()
FOR_ALL_COMPANIES(c) {
c->terraform_limit = min(c->terraform_limit + _settings_game.construction.terraform_per_64k_frames, (uint32)_settings_game.construction.terraform_frame_burst << 16);
c->clear_limit = min(c->clear_limit + _settings_game.construction.clear_per_64k_frames, (uint32)_settings_game.construction.clear_frame_burst << 16);
+ c->tree_limit = min(c->tree_limit + _settings_game.construction.tree_per_64k_frames, (uint32)_settings_game.construction.tree_frame_burst << 16);
}
}