Add rate limit for object construction

This commit is contained in:
Jonathan G Rennison
2020-09-14 23:06:49 +01:00
parent f0f5ce5840
commit 2d350d26db
10 changed files with 53 additions and 2 deletions

View File

@@ -3750,6 +3750,13 @@ bool AfterLoadGame()
}
}
if (SlXvIsFeatureMissing(XSLFI_BUILD_OBJECT_RATE_LIMIT)) {
/* Introduced build object limit. */
for (Company *c : Company::Iterate()) {
c->build_object_limit = _settings_game.construction.build_object_frame_burst << 16;
}
}
if (SlXvIsFeaturePresent(XSLFI_MORE_COND_ORDERS, 1, 1)) {
for (Order *order : Order::Iterate()) {
// Insertion of OCV_MAX_RELIABILITY between OCV_REMAINING_LIFETIME and OCV_CARGO_WAITING