Author: cazfi
Date: Tue May 2 14:30:53 2017
New Revision: 35365
URL: http://svn.gna.org/viewcvs/freeciv?rev=35365&view=rev
Log:
Store client gui_type
See hrm Feature #656558
Modified:
branches/S3_0/common/networking/connection.h
branches/S3_0/server/sernet.c
branches/S3_0/server/srv_main.c
Modified: branches/S3_0/common/networking/connection.h
URL:
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/common/networking/connection.h?rev=35365&r1=35364&r2=35365&view=diff
==============================================================================
--- branches/S3_0/common/networking/connection.h (original)
+++ branches/S3_0/common/networking/connection.h Tue May 2 14:30:53 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: branches/S3_0/server/sernet.c
URL:
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/sernet.c?rev=35365&r1=35364&r2=35365&view=diff
==============================================================================
--- branches/S3_0/server/sernet.c (original)
+++ branches/S3_0/server/sernet.c Tue May 2 14:30:53 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: branches/S3_0/server/srv_main.c
URL:
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/srv_main.c?rev=35365&r1=35364&r2=35365&view=diff
==============================================================================
--- branches/S3_0/server/srv_main.c (original)
+++ branches/S3_0/server/srv_main.c Tue May 2 14:30:53 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
[email protected]
https://mail.gna.org/listinfo/freeciv-commits