From 975c252122aee6338c1b284bb6fbd24485b86723 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 14 Jan 2006 00:13:04 +0000 Subject: Detect if disconnected from the server while waiting for the game start. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 293 --- src/net_gui.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/net_gui.c') 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); } -- cgit v1.2.3