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