[Freeciv-Dev] (PR#13305) Client doesn't cross out nations taken by other
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#13305) Client doesn't cross out nations taken by other players |
From: |
"Mateusz Stefek" <mstefek@xxxxxxxxx> |
Date: |
Tue, 21 Jun 2005 23:25:21 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13305 >
Here's a better patch
--
mateusz
Index: client/gui-gtk-2.0/dialogs.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/dialogs.c,v
retrieving revision 1.106
diff -u -r1.106 dialogs.c
--- client/gui-gtk-2.0/dialogs.c 7 Jun 2005 06:17:10 -0000 1.106
+++ client/gui-gtk-2.0/dialogs.c 22 Jun 2005 06:24:57 -0000
@@ -1607,6 +1607,7 @@
for (i = 0; i < game.control.playable_nation_count; i++) {
struct nation_type *nation;
struct sprite *s;
+ bool used;
GdkPixbuf *img;
GtkTreeIter it;
GValue value = { 0, };
@@ -1621,7 +1622,8 @@
s = crop_blankspace(get_nation_flag_sprite(tileset, i));
img = sprite_get_pixbuf(s);
- gtk_list_store_set(store, &it, 0, i, 1, FALSE, 2, img, -1);
+ used = nation->is_unavailable || nation->is_used;
+ gtk_list_store_set(store, &it, 0, i, 1, used, 2, img, -1);
free_sprite(s);
g_value_init(&value, G_TYPE_STRING);
|
|