Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#12078) dead and allied
Home

[Freeciv-Dev] (PR#12078) dead and allied

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#12078) dead and allied
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Tue, 8 Feb 2005 01:22:04 -0800
Reply-to: bugs@xxxxxxxxxxx

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

> [chrisk - Wed Feb 02 10:04:53 2005]:
> 
> 
> CVS 02 FEB 2005 S2 GTK2
> 
> Player --> intelligence --> diplomacy lists dead players as allied or
as in
> war with.
> 
> Christian
> 
> 
A patch
--
mateusz
Index: client/gui-gtk-2.0/inteldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/inteldlg.c,v
retrieving revision 1.19
diff -u -r1.19 inteldlg.c
--- client/gui-gtk-2.0/inteldlg.c       22 Jan 2005 19:45:40 -0000      1.19
+++ client/gui-gtk-2.0/inteldlg.c       8 Feb 2005 09:20:50 -0000
@@ -317,7 +317,7 @@
       GtkTreeIter it;
       GValue v = { 0, };
 
-      if (other == p) {
+      if (other == p || !other->is_alive) {
        continue;
       }
       state = pplayer_get_diplstate(p, other);

[Prev in Thread] Current Thread [Next in Thread]