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 /misc_cmd.c | |
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 'misc_cmd.c')
-rw-r--r-- | misc_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_cmd.c b/misc_cmd.c index d96572bb6..342cbbbe3 100644 --- a/misc_cmd.c +++ b/misc_cmd.c @@ -126,7 +126,7 @@ int32 CmdIncreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (flags & DC_EXEC) { /* Loan the maximum amount or not? */ - int32 loan = (p2) ? _economy.max_loan - p->current_loan : (IS_HUMAN_PLAYER(_current_player) || _patches.ainew_active) ? 10000 : 50000; + int32 loan = (p2) ? _economy.max_loan - p->current_loan : (IsHumanPlayer(_current_player) || _patches.ainew_active) ? 10000 : 50000; p->money64 += loan; p->current_loan += loan; @@ -160,7 +160,7 @@ int32 CmdDecreaseLoan(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) loan = max(loan, 10000); loan -= loan % 10000; } else { - loan = min(loan, (IS_HUMAN_PLAYER(_current_player) || _patches.ainew_active) ? 10000 : 50000); + loan = min(loan, (IsHumanPlayer(_current_player) || _patches.ainew_active) ? 10000 : 50000); } if (p->player_money < loan) { |