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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user