ai_new.c
changeset 1767 cda2e9ac430a
parent 1713 659ca3025cc5
child 1891 862800791170
equal deleted inserted replaced
1766:8cdb302ae946 1767:cda2e9ac430a
  1189 
  1189 
  1190 // Repays money
  1190 // Repays money
  1191 static void AiNew_State_RepayMoney(Player *p) {
  1191 static void AiNew_State_RepayMoney(Player *p) {
  1192     int i;
  1192     int i;
  1193     for (i=0;i<AI_LOAN_REPAY;i++)
  1193     for (i=0;i<AI_LOAN_REPAY;i++)
  1194     	DoCommandByTile(0, _current_player, 0, DC_EXEC, CMD_DECREASE_LOAN);
  1194     	DoCommandByTile(0, 0, 0, DC_EXEC, CMD_DECREASE_LOAN);
  1195     p->ainew.state = AI_STATE_ACTION_DONE;
  1195     p->ainew.state = AI_STATE_ACTION_DONE;
  1196 }
  1196 }
  1197 
  1197 
  1198 static void AiNew_CheckVehicle(Player *p, Vehicle *v) {
  1198 static void AiNew_CheckVehicle(Player *p, Vehicle *v) {
  1199 	// When a vehicle is under the 6 months, we don't check for anything
  1199 	// When a vehicle is under the 6 months, we don't check for anything