Author: cazfi
Date: Tue May  2 14:30:45 2017
New Revision: 35364

URL: http://svn.gna.org/viewcvs/freeciv?rev=35364&view=rev
Log:
Store client gui_type

See hrm Feature #656558

Modified:
    trunk/common/networking/connection.h
    trunk/server/sernet.c
    trunk/server/srv_main.c

Modified: trunk/common/networking/connection.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/networking/connection.h?rev=35364&r1=35363&r2=35364&view=diff
==============================================================================
--- trunk/common/networking/connection.h        (original)
+++ trunk/common/networking/connection.h        Tue May  2 14:30:45 2017
@@ -180,6 +180,8 @@
    */
   enum cmdlevel access_level;
 
+  enum gui_type client_gui;
+
   void (*notify_of_writable_data) (struct connection * pc,
                                    bool data_available_and_socket_full);
 

Modified: trunk/server/sernet.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/sernet.c?rev=35364&r1=35363&r2=35364&view=diff
==============================================================================
--- trunk/server/sernet.c       (original)
+++ trunk/server/sernet.c       Tue May  2 14:30:45 2017
@@ -218,6 +218,7 @@
   conn_list_remove(game.est_connections, pconn);
 
   pconn->playing = NULL;
+  pconn->client_gui = GUI_STUB;
   pconn->access_level = ALLOW_NONE;
   connection_common_close(pconn);
 

Modified: trunk/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/srv_main.c?rev=35364&r1=35363&r2=35364&view=diff
==============================================================================
--- trunk/server/srv_main.c     (original)
+++ trunk/server/srv_main.c     Tue May  2 14:30:45 2017
@@ -299,6 +299,7 @@
 void handle_client_info(struct connection *pc, enum gui_type gui,
                         const char *distribution)
 {
+  pc->client_gui = gui;
   log_debug("%s's client has %s gui.", pc->username, gui_type_name(gui));
   if (strcmp(distribution, "")) {
     log_debug("It comes from %s distribution.", distribution);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to