Changeset - r26870:4f6a4f56e921
[Not reviewed]
master
0 1 0
SamuXarick - 15 months ago 2023-02-10 11:31:40
43006711+SamuXarick@users.noreply.github.com
Change: Show buy company dialog window even when playing in the AI company
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/company_cmd.cpp
Show inline comments
 
@@ -702,9 +702,9 @@ static void HandleBankruptcyTakeover(Com
 
	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);
 
	}
 
}
0 comments (0 inline, 0 general)