(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
This commit is contained in:
2
ai_new.c
2
ai_new.c
@@ -1191,7 +1191,7 @@ static void AiNew_State_StartVehicle(Player *p) {
|
||||
static void AiNew_State_RepayMoney(Player *p) {
|
||||
int i;
|
||||
for (i=0;i<AI_LOAN_REPAY;i++)
|
||||
DoCommandByTile(0, _current_player, 0, DC_EXEC, CMD_DECREASE_LOAN);
|
||||
DoCommandByTile(0, 0, 0, DC_EXEC, CMD_DECREASE_LOAN);
|
||||
p->ainew.state = AI_STATE_ACTION_DONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user