Changeset - r15011:acd1a8b391ed
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-04-14 20:26:34
rubidium@openttd.org
(svn r19636) -Fix: desync when taking over companies
1 file changed with 3 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/company_cmd.cpp
Show inline comments
 
@@ -595,14 +595,11 @@ static void HandleBankruptcyTakeover(Com
 

	
 
	SetBit(c->bankrupt_asked, best->index);
 

	
 
	if (IsInteractiveCompany(best->index)) {
 
		c->bankrupt_timeout = TAKE_OVER_TIMEOUT;
 
		ShowBuyCompanyDialog(c->index);
 
		return;
 
	}
 

	
 
	c->bankrupt_timeout = TAKE_OVER_TIMEOUT;
 
	if (best->is_ai) {
 
		AI::NewEvent(best->index, new AIEventCompanyAskMerger(c->index, ClampToI32(c->bankrupt_value)));
 
	} else if (IsInteractiveCompany(best->index)) {
 
		ShowBuyCompanyDialog(c->index);
 
	}
 
}
 

	
0 comments (0 inline, 0 general)