Index: server/srv_main.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/server/srv_main.c,v retrieving revision 1.89 diff -u -r1.89 srv_main.c --- server/srv_main.c 2002/08/10 17:07:29 1.89 +++ server/srv_main.c 2002/08/13 13:05:17 @@ -190,6 +190,7 @@ { int barbs = 0; int alive = 0; + struct player *aplayer = NULL; if (game.year > game.end_year) return TRUE; @@ -206,8 +207,14 @@ players_iterate(pplayer) { if (pplayer->is_alive && !is_barbarian(pplayer)) { alive++; + aplayer = pplayer; } } players_iterate_end; + + /* pitfight games need this */ + if (alive == 1) { + gamelog(GAMELOG_NORMAL, "Winner is %s (%s)", aplayer->name, aplayer->username); + } return (alive <= 1); }