Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] (PR#12962) show readiness in /list
Home

[Freeciv-Dev] (PR#12962) show readiness in /list

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12962) show readiness in /list
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 2 May 2005 14:05:19 -0700
Reply-to: bugs@xxxxxxxxxxx

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

This patch shows players' readiness in the /list command.  It also fixes
an untranslated string (!how could this have gone unnoticed!).

This is intended mainly for 2.0 where it is currently impossible to tell
what's holding up a game.

-jason

Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.354.2.33
diff -u -r1.354.2.33 stdinhand.c
--- server/stdinhand.c  26 Apr 2005 17:16:51 -0000      1.354.2.33
+++ server/stdinhand.c  2 May 2005 21:04:08 -0000
@@ -4020,9 +4020,16 @@
                     get_nation_name_plural(pplayer->nation));
       }
       if (pplayer->team != TEAM_NONE) {
-        cat_snprintf(buf2, sizeof(buf2), (", team %s"),
+        cat_snprintf(buf2, sizeof(buf2), _(", team %s"),
                      team_get_by_id(pplayer->team)->name);
       }
+      if (server_state == PRE_GAME_STATE && pplayer->is_connected) {
+       if (pplayer->is_started) {
+         cat_snprintf(buf2, sizeof(buf2), _(", ready"));
+       } else {
+         cat_snprintf(buf2, sizeof(buf2), _(", not ready"));
+       }
+      }
       my_snprintf(buf, sizeof(buf), "%s (%s)", pplayer->name, buf2);
       
       n = conn_list_size(&pplayer->connections);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12962) show readiness in /list, Jason Short <=