1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-17 19:49:10 +00:00

Fix: [Script] Apply random deviation only at script start (#11944)

This commit is contained in:
Loïc Guilloux
2024-02-01 10:48:40 +01:00
committed by GitHub
parent e28edf6945
commit ab1407fc43
6 changed files with 8 additions and 11 deletions

View File

@@ -48,6 +48,7 @@
/* Load default data and store the name in the settings */
config->Change(info->GetName(), -1, false, true);
}
if (rerandomise_ai) config->AddRandomDeviation();
config->AnchorUnchangeableSettings();
Backup<CompanyID> cur_company(_current_company, company, FILE_LINE);