From d17476b058fb877484159bec0b725d1be5a6d68f Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 6 May 2005 06:56:30 +0000 Subject: (svn r2271) CMD_SET_PLAYER_FACE, CMD_SET_PLAYER_COLOR, CMD_INCREASE_LOAN, CMD_DECREASE_LOAN only make sense for the current player, so don't explicitly pass a player number --- ai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ai.c') diff --git a/ai.c b/ai.c index 2cb475997..05f5a82f6 100644 --- a/ai.c +++ b/ai.c @@ -3882,14 +3882,14 @@ static void AiAdjustLoan(Player *p) if (p->player_money > base * 1400) { // Decrease loan if (p->current_loan != 0) { - DoCommandByTile(0, _current_player, 0, DC_EXEC, CMD_DECREASE_LOAN); + DoCommandByTile(0, 0, 0, DC_EXEC, CMD_DECREASE_LOAN); } } else if (p->player_money < base * 500) { // Increase loan if (p->current_loan < _economy.max_loan && p->num_valid_stat_ent >= 2 && -(p->old_economy[0].expenses+p->old_economy[1].expenses) < base * 60) { - DoCommandByTile(0, _current_player, 0, DC_EXEC, CMD_INCREASE_LOAN); + DoCommandByTile(0, 0, 0, DC_EXEC, CMD_INCREASE_LOAN); } } } -- cgit v1.2.3-70-g09d2