Index: ai/aiunit.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/ai/aiunit.c,v retrieving revision 1.162 diff -r1.162 aiunit.c 183c183 < int ai_manage_explorer(struct unit *punit) --- > int ai_manage_explorer(struct player *pplayer, struct unit *punit) 185d184 < struct player *pplayer = unit_owner(punit); 194a194,195 > if (!punit->moves_left) return 0; /* can't do anything with no moves */ > 240c241 < return ai_manage_explorer(punit); --- > return ai_manage_explorer(pplayer, punit); 340c341 < return ai_manage_explorer(punit); --- > return ai_manage_explorer(pplayer, punit); 1514c1515 < ai_manage_explorer(punit); /* nothing else to do */ --- > ai_manage_explorer(pplayer, punit); /* nothing else to do */ 1677c1678 < ai_manage_explorer(punit); --- > ai_manage_explorer(pplayer, punit); 1743c1744 < ai_manage_explorer(punit); --- > ai_manage_explorer(pplayer, punit); 1755a1757,1758 > if (!punit->moves_left) return; /* can't do anything with no moves */ > 1800c1803 < ai_manage_explorer(punit); --- > ai_manage_explorer(pplayer, punit); 1878d1880 < if (!punit->moves_left) return; /* can't do anything with no moves */ 1891d1892 < if (!punit->moves_left) return; /* can't do anything with no moves */ 1895,1896c1896 < if (!punit->moves_left) return; /* can't do anything with no moves */ < ai_manage_explorer(punit); /* what else could this be? -- Syela */ --- > ai_manage_explorer(pplayer, punit); /* what else could this be? -- Syela */ Index: ai/aiunit.h =================================================================== RCS file: /home/freeciv/CVS/freeciv/ai/aiunit.h,v retrieving revision 1.27 diff -r1.27 aiunit.h 29c29 < int ai_manage_explorer(struct unit *punit); --- > int ai_manage_explorer(struct player *pplayer, struct unit *punit); Index: server/settlers.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/server/settlers.c,v retrieving revision 1.116 diff -r1.116 settlers.c 394a395 > if (!punit->moves_left) return; /* can't do anything with no moves */ Index: server/unithand.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/server/unithand.c,v retrieving revision 1.209 diff -r1.209 unithand.c 1259c1259 < int more_to_explore = ai_manage_explorer(punit); --- > int more_to_explore = ai_manage_explorer(unit_owner(punit), punit); Index: server/unittools.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/server/unittools.c,v retrieving revision 1.150 diff -r1.150 unittools.c 806c806 < int more_to_explore = ai_manage_explorer(punit); --- > int more_to_explore = ai_manage_explorer(pplayer, punit);