diff options
author | Simon Howard | 2006-01-12 02:18:59 +0000 |
---|---|---|
committer | Simon Howard | 2006-01-12 02:18:59 +0000 |
commit | 01e9eff0e42b4255fd230fe1f9e5de9c9ed16e8f (patch) | |
tree | a0367c2622a52af70ff6f64e8b6b515daf3db6ca /src/net_client.c | |
parent | af6bdd73396e166417484c2efe4a0eb48aac780e (diff) | |
download | chocolate-doom-01e9eff0e42b4255fd230fe1f9e5de9c9ed16e8f.tar.gz chocolate-doom-01e9eff0e42b4255fd230fe1f9e5de9c9ed16e8f.tar.bz2 chocolate-doom-01e9eff0e42b4255fd230fe1f9e5de9c9ed16e8f.zip |
Only start new games when in the waiting-for-start state.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 285
Diffstat (limited to 'src/net_client.c')
-rw-r--r-- | src/net_client.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/net_client.c b/src/net_client.c index f70a7c0a..c071d37a 100644 --- a/src/net_client.c +++ b/src/net_client.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: net_client.c 284 2006-01-12 02:11:52Z fraggle $ +// $Id: net_client.c 285 2006-01-12 02:18:59Z fraggle $ // // Copyright(C) 2005 Simon Howard // @@ -21,6 +21,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.18 2006/01/12 02:18:59 fraggle +// Only start new games when in the waiting-for-start state. +// // Revision 1.17 2006/01/12 02:11:52 fraggle // Game start packets // @@ -251,6 +254,13 @@ static void NET_CL_ParseGameStart(net_packet_t *packet) return; } + if (client_state != CLIENT_STATE_WAITING_START) + { + return; + } + + // Start the game + consoleplayer = player_number; for (i=0; i<MAXPLAYERS; ++i) |