diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-14 15:15:56 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-14 15:15:56 +0000 |
commit | 2dcdeb985d481ca44208d8d675eda31db7d4c9ff (patch) | |
tree | 2149ebda4f454f9dd52f174d0062275bb83fd28f /ai/default | |
parent | 91ac1fa1864d556127ba692f30d67df618fd7063 (diff) | |
download | openttd-2dcdeb985d481ca44208d8d675eda31db7d4c9ff.tar.xz |
(svn r6771) -Codechange: Replace two macros with functions. IS_HUMAN_PLAYER and
IS_INTERACTIVE_PLAYER
Diffstat (limited to 'ai/default')
-rw-r--r-- | ai/default/default.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index acc7b8166..dc4cce2fa 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -3773,7 +3773,7 @@ static void AiHandleTakeover(Player *p) AskExitToGameMenu(); return; } - if (IS_HUMAN_PLAYER(_current_player)) return; + if (IsHumanPlayer(_current_player)) return; } if (p->bankrupt_asked == 255) return; @@ -3809,7 +3809,7 @@ static void AiHandleTakeover(Player *p) ShowBuyCompanyDialog(_current_player); return; } - 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) { @@ -3866,7 +3866,7 @@ void AiDoGameLoop(Player *p) // or in % _ai_service_interval = _patches.servint_ispercent?80:180; - if (IS_HUMAN_PLAYER(_current_player)) return; + if (IsHumanPlayer(_current_player)) return; AiAdjustLoan(p); AiBuildCompanyHQ(p); |