mirror of https://github.com/OpenTTD/OpenTTD
Change: Show buy company dialog window even when playing in the AI company
parent
43ce73db86
commit
231935fccd
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue