summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-01-14 00:13:04 +0000
committerSimon Howard2006-01-14 00:13:04 +0000
commit975c252122aee6338c1b284bb6fbd24485b86723 (patch)
tree7398a88c00d31373905c7733ac4e93dca79e0d36
parente3e4b061157c2a1c7cd17f74a35d7ae744378772 (diff)
downloadchocolate-doom-975c252122aee6338c1b284bb6fbd24485b86723.tar.gz
chocolate-doom-975c252122aee6338c1b284bb6fbd24485b86723.tar.bz2
chocolate-doom-975c252122aee6338c1b284bb6fbd24485b86723.zip
Detect if disconnected from the server while waiting for the game start.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 293
-rw-r--r--src/net_gui.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/net_gui.c b/src/net_gui.c
index c7f5edd7..f3cc72f7 100644
--- a/src/net_gui.c
+++ b/src/net_gui.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_gui.c 292 2006-01-14 00:10:54Z fraggle $
+// $Id: net_gui.c 293 2006-01-14 00:13:04Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.11 2006/01/14 00:13:04 fraggle
+// Detect if disconnected from the server while waiting for the game start.
+//
// Revision 1.10 2006/01/14 00:10:54 fraggle
// Change the format of color commands. Reorganise the waiting dialog.
//
@@ -171,6 +174,11 @@ void NET_WaitForStart(void)
NET_CL_Run();
NET_SV_Run();
+ if (!net_client_connected)
+ {
+ I_Error("Disconnected from server");
+ }
+
I_Sleep(50);
}