summaryrefslogtreecommitdiff
path: root/src/net_client.h
diff options
context:
space:
mode:
authorSimon Howard2006-01-09 01:50:51 +0000
committerSimon Howard2006-01-09 01:50:51 +0000
commit65c8df250f0a138e22ad70c6ac1c6bf53cfa3ad7 (patch)
treec4d0036a2808708d2a7c4da7aa5584c0b49f784c /src/net_client.h
parent2d20dee9798613951023bc570104a6f80f0ef628 (diff)
downloadchocolate-doom-65c8df250f0a138e22ad70c6ac1c6bf53cfa3ad7.tar.gz
chocolate-doom-65c8df250f0a138e22ad70c6ac1c6bf53cfa3ad7.tar.bz2
chocolate-doom-65c8df250f0a138e22ad70c6ac1c6bf53cfa3ad7.zip
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
Diffstat (limited to 'src/net_client.h')
-rw-r--r--src/net_client.h10
1 files changed, 9 insertions, 1 deletions
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 */