Index: ai/aiair.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/ai/aiair.c,v retrieving revision 1.26 diff -u -r1.26 aiair.c --- ai/aiair.c 25 Jun 2004 23:43:00 -0000 1.26 +++ ai/aiair.c 29 Aug 2004 13:52:19 -0000 @@ -333,7 +333,7 @@ /* goto would be aborted: "Aborting GOTO for AI attack procedures" * now actually need to attack */ /* We could use ai_military_findvictim here, but I don't trust it... */ - set_unit_activity(punit, ACTIVITY_IDLE); + handle_unit_activity_request(punit, ACTIVITY_IDLE); if (is_tiles_adjacent(punit->x, punit->y, goto_dest_x(punit), goto_dest_y(punit))) { (void) handle_unit_move_request(punit, goto_dest_x(punit), @@ -349,7 +349,7 @@ } else { freelog(LOG_DEBUG, "%s cannot find anything to kill and is staying put", unit_type(punit)->name); - set_unit_activity(punit, ACTIVITY_IDLE); + handle_unit_activity_request(punit, ACTIVITY_IDLE); } }