From 65c8df250f0a138e22ad70c6ac1c6bf53cfa3ad7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 9 Jan 2006 01:50:51 +0000 Subject: Deduce a sane player name by examining environment variables. Add a "player_name" setting to chocolate-doom.cfg. Transmit the name to the server and use the names players send in the waiting data list. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 277 --- src/net_client.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/net_client.h') diff --git a/src/net_client.h b/src/net_client.h index 9200e167..573eae3b 100644 --- a/src/net_client.h +++ b/src/net_client.h @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: net_client.h 262 2006-01-07 20:08:11Z fraggle $ +// $Id: net_client.h 277 2006-01-09 01:50:51Z fraggle $ // // Copyright(C) 2005 Simon Howard // @@ -21,6 +21,11 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.8 2006/01/09 01:50:51 fraggle +// Deduce a sane player name by examining environment variables. Add +// a "player_name" setting to chocolate-doom.cfg. Transmit the name +// to the server and use the names players send in the waiting data list. +// // Revision 1.7 2006/01/07 20:08:11 fraggle // Send player name and address in the waiting data packets. Display these // on the waiting screen, and improve the waiting screen appearance. @@ -64,6 +69,8 @@ boolean NET_CL_Connect(net_addr_t *addr); void NET_CL_Disconnect(void); void NET_CL_Run(void); +void NET_CL_Init(void); +void NET_Init(void); extern boolean net_client_connected; extern boolean net_client_controller; @@ -71,6 +78,7 @@ extern int net_clients_in_game; extern boolean net_waiting_for_start; extern char net_player_names[MAXPLAYERS][MAXPLAYERNAME]; extern char net_player_addresses[MAXPLAYERS][MAXPLAYERNAME]; +extern char *net_player_name; #endif /* #ifndef NET_CLIENT_H */ -- cgit v1.2.3