summaryrefslogtreecommitdiff
path: root/src/net_client.h
diff options
context:
space:
mode:
authorSimon Howard2006-01-07 20:08:11 +0000
committerSimon Howard2006-01-07 20:08:11 +0000
commit79b77612579be43566fcbac7a153da22b4cd9dd7 (patch)
tree452a19d3a9d026de438fe33e971e1a684636e6c8 /src/net_client.h
parent1432f924ba8bce62b212b57909a69fc4fdee8270 (diff)
downloadchocolate-doom-79b77612579be43566fcbac7a153da22b4cd9dd7.tar.gz
chocolate-doom-79b77612579be43566fcbac7a153da22b4cd9dd7.tar.bz2
chocolate-doom-79b77612579be43566fcbac7a153da22b4cd9dd7.zip
Send player name and address in the waiting data packets. Display these
on the waiting screen, and improve the waiting screen appearance. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 262
Diffstat (limited to 'src/net_client.h')
-rw-r--r--src/net_client.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/net_client.h b/src/net_client.h
index 2723eab6..9200e167 100644
--- a/src/net_client.h
+++ b/src/net_client.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_client.h 252 2006-01-02 21:50:26Z fraggle $
+// $Id: net_client.h 262 2006-01-07 20:08:11Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
+// 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.
+//
// Revision 1.6 2006/01/02 21:50:26 fraggle
// Restructure the waiting screen code. Establish our own separate event
// loop while waiting for the game to start, to avoid affecting the original
@@ -51,9 +55,12 @@
#ifndef NET_CLIENT_H
#define NET_CLIENT_H
+#include "doomdef.h"
#include "doomtype.h"
#include "net_defs.h"
+#define MAXPLAYERNAME 30
+
boolean NET_CL_Connect(net_addr_t *addr);
void NET_CL_Disconnect(void);
void NET_CL_Run(void);
@@ -62,6 +69,8 @@ extern boolean net_client_connected;
extern boolean net_client_controller;
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];
#endif /* #ifndef NET_CLIENT_H */