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

pull/484/head
SamuXarick 1 year ago committed by rubidium42
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…
Cancel
Save