1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

Change: Show buy company dialog window even when playing in the AI company

This commit is contained in:
SamuXarick
2023-02-10 11:31:40 +00:00
committed by rubidium42
parent 43ce73db86
commit 231935fccd

View File

@@ -702,9 +702,9 @@ static void HandleBankruptcyTakeover(Company *c)
SetBit(c->bankrupt_asked, best->index);
c->bankrupt_timeout = TAKE_OVER_TIMEOUT;
if (best->is_ai) {
AI::NewEvent(best->index, new ScriptEventCompanyAskMerger(c->index, c->bankrupt_value));
} else if (IsInteractiveCompany(best->index)) {
AI::NewEvent(best->index, new ScriptEventCompanyAskMerger(c->index, c->bankrupt_value));
if (IsInteractiveCompany(best->index)) {
ShowBuyCompanyDialog(c->index);
}
}