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

2008/6/22 Marko Lindqvist:
>  There is no game.player_ptr or packet_remove_player in S2_2 and
> TRUNK. This patch only
>  - Revert my earlier patch, but uses proper accessor functions instead
> of old implementation

 ...and one more mistake fixed.


 - ML

diff -Nurd -X.diff_ignore freeciv/client/gui-gtk-2.0/gui_main.c 
freeciv/client/gui-gtk-2.0/gui_main.c
--- freeciv/client/gui-gtk-2.0/gui_main.c       2008-06-22 10:07:44.000000000 
+0300
+++ freeciv/client/gui-gtk-2.0/gui_main.c       2008-06-22 11:59:29.000000000 
+0300
@@ -1559,12 +1559,10 @@
 {
   GtkTreeIter it[player_count()];
 
-  if (NULL != client.conn.playing) {
+  if (client_has_player()) {
     char *text;
 
-    if (!client_has_player()) {
-      text = _("_Ready");
-    } else if (client.conn.playing->is_ready) {
+    if (client_player()->is_ready) {
       text = _("Not _ready");
     } else {
       int num_unready = 0;
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to