summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-01-02 21:48:37 +0000
committerSimon Howard2006-01-02 21:48:37 +0000
commitdd2339bca5ee57aaee232061a4015cf30454e42e (patch)
tree6ebff0ffc712c3bdddcc0954ec0a5ba63035ef22 /src
parent58656316f7e115a321a155f905b2daaefcde537d (diff)
downloadchocolate-doom-dd2339bca5ee57aaee232061a4015cf30454e42e.tar.gz
chocolate-doom-dd2339bca5ee57aaee232061a4015cf30454e42e.tar.bz2
chocolate-doom-dd2339bca5ee57aaee232061a4015cf30454e42e.zip
fix client connected function
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 251
Diffstat (limited to 'src')
-rw-r--r--src/net_server.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/net_server.c b/src/net_server.c
index e4dc4fe6..39e6da8a 100644
--- a/src/net_server.c
+++ b/src/net_server.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_server.c 250 2006-01-02 21:04:10Z fraggle $
+// $Id: net_server.c 251 2006-01-02 21:48:37Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.10 2006/01/02 21:48:37 fraggle
+// fix client connected function
+//
// Revision 1.9 2006/01/02 21:04:10 fraggle
// Create NET_SV_Shutdown function to shut down the server. Call it
// when quitting the game. Print the IP of the server correctly when
@@ -126,10 +129,10 @@ static boolean ClientConnected(net_client_t *client)
// Check that the client is properly connected: ie. not in the
// process of connecting or disconnecting
- return clients->active
- && clients->state != CLIENT_STATE_DISCONNECTING
- && clients->state != CLIENT_STATE_DISCONNECTED
- && clients->state != CLIENT_STATE_WAITING_ACK;
+ return client->active
+ && client->state != CLIENT_STATE_DISCONNECTING
+ && client->state != CLIENT_STATE_DISCONNECTED
+ && client->state != CLIENT_STATE_WAITING_ACK;
}
// returns the number of clients connected