@@ -3770,13 +3770,13 @@ static void AiHandleTakeover(Player *p)
p->bankrupt_timeout = 0;
DeleteWindowById(WC_BUY_COMPANY, _current_player);
if (IsLocalPlayer()) {
AskExitToGameMenu();
return;
}
if (IS_HUMAN_PLAYER(_current_player)) return;
if (IsHumanPlayer(_current_player)) return;
if (p->bankrupt_asked == 255) return;
{
uint asked = p->bankrupt_asked;
@@ -3806,13 +3806,13 @@ static void AiHandleTakeover(Player *p)
if (best_pl->index == _local_player) {
p->bankrupt_timeout = 4440;
ShowBuyCompanyDialog(_current_player);
if (IS_HUMAN_PLAYER(best_pl->index)) return;
if (IsHumanPlayer(best_pl->index)) return;
// Too little money for computer to buy it?
if (best_pl->player_money >> 1 >= p->bankrupt_value) {
// Computer wants to buy it.
old_p = _current_player;
_current_player = p->index;
@@ -3863,13 +3863,13 @@ void AiDoGameLoop(Player *p)
// Ugly hack to make sure the service interval of the AI is good, not looking
// to the patch-setting
// Also, it takes into account the setting if the service-interval is in days
// or in %
_ai_service_interval = _patches.servint_ispercent?80:180;
AiAdjustLoan(p);
AiBuildCompanyHQ(p);
#if 0