mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 02:49:10 +00:00
Remove: [Script] random_deviation from setting description table (#12221)
This commit is contained in:
@@ -27,9 +27,8 @@ public:
|
||||
/**
|
||||
* Start a new AI company.
|
||||
* @param company At which slot the AI company should start.
|
||||
* @param deviate Whether to apply random deviation to the configured AI.
|
||||
*/
|
||||
static void StartNew(CompanyID company, bool deviate = true);
|
||||
static void StartNew(CompanyID company);
|
||||
|
||||
/**
|
||||
* Called every game-tick to let AIs do something.
|
||||
|
@@ -33,7 +33,7 @@
|
||||
return !_networking || (_network_server && _settings_game.ai.ai_in_multiplayer);
|
||||
}
|
||||
|
||||
/* static */ void AI::StartNew(CompanyID company, bool deviate)
|
||||
/* static */ void AI::StartNew(CompanyID company)
|
||||
{
|
||||
assert(Company::IsValidID(company));
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
/* Load default data and store the name in the settings */
|
||||
config->Change(info->GetName(), -1, false);
|
||||
}
|
||||
if (deviate) config->AddRandomDeviation(company);
|
||||
config->AnchorUnchangeableSettings();
|
||||
|
||||
c->ai_info = info;
|
||||
@@ -221,7 +220,7 @@
|
||||
* killing the offending AI we start a random other one in it's place, just
|
||||
* like what would happen if the AI was missing during loading. */
|
||||
AI::Stop(c);
|
||||
AI::StartNew(c, false);
|
||||
AI::StartNew(c);
|
||||
}
|
||||
} else if (Company::IsValidAiID(c)) {
|
||||
/* Update the reference in the Company struct. */
|
||||
|
Reference in New Issue
Block a user