Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] Re: (PR#11993) gamelog reports barbarians as winners
Home

[Freeciv-Dev] Re: (PR#11993) gamelog reports barbarians as winners

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11993) gamelog reports barbarians as winners
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 29 Jan 2005 13:08:45 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11993 >

On Sat, Jan 22, 2005 at 07:21:25PM -0800, Jason Short wrote:
> 
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11993 >
> 
> In creating a list of winners, the gamelog includes barbarians.

should take care of it. not tested though.

-mike

Index: server/gamelog.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/gamelog.c,v
retrieving revision 1.38.2.4
diff -u -r1.38.2.4 gamelog.c
--- server/gamelog.c    16 Jan 2005 02:36:35 -0000      1.38.2.4
+++ server/gamelog.c    29 Jan 2005 16:13:12 -0000
@@ -536,7 +536,7 @@
     case GL_ALLIEDWIN:
       my_snprintf(buf, sizeof(buf), "<type>%s</type>", endgame_strings[num]);
       players_iterate(aplayer) {
-        if (aplayer->is_alive) {
+        if (aplayer->is_alive && !is_barbarian(aplayer)) {
           cat_snprintf(buf, sizeof(buf), "<n>%d</n>", aplayer->player_no);
         }
       } players_iterate_end;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#11993) gamelog reports barbarians as winners, Mike Kaufman <=