[chocolate-doom] 65/79: Detect if disconnected from the server while waiting for the game start.

Jonathan Dowland jmtd at moszumanska.debian.org
Mon Jan 30 15:07:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

jmtd pushed a commit to annotated tag chocolate-doom-0.1.3
in repository chocolate-doom.

commit 975c252122aee6338c1b284bb6fbd24485b86723
Author: Simon Howard <fraggle at gmail.com>
Date:   Sat Jan 14 00:13:04 2006 +0000

    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(-)

diff --git a/src/net_gui.c b/src/net_gui.c
index c7f5edd..f3cc72f 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);
     }
     

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git



More information about the Pkg-games-commits mailing list