shithub: choc

Download patch

ref: 02ed6c1bb5b1fbdd6aa1d41b01e1c374d8c86e5d
parent: 8df3eb7ce027ec1a73c8fce879ee0d59ac4e49c9
author: Simon Howard <[email protected]>
date: Sun Jan 8 00:04:50 EST 2006

Don't grab the mouse on the net waiting screen

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 269

--- a/src/net_gui.c
+++ b/src/net_gui.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: net_gui.c 262 2006-01-07 20:08:11Z fraggle $
+// $Id: net_gui.c 269 2006-01-08 05:04:50Z fraggle $
 //
 // Copyright(C) 2005 Simon Howard
 //
@@ -21,6 +21,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.4  2006/01/08 05:04:50  fraggle
+// Don't grab the mouse on the net waiting screen
+//
 // Revision 1.3  2006/01/07 20:08:11  fraggle
 // Send player name and address in the waiting data packets.  Display these
 // on the waiting screen, and improve the waiting screen appearance.
@@ -42,6 +45,8 @@
 //    start the game.
 //   
 
+#include "doomstat.h"
+
 #include "net_client.h"
 #include "net_gui.h"
 #include "net_server.h"
@@ -157,6 +162,11 @@
 
     NET_InitGUI();
 
+    // cheap hack: pretend to be on a demo screen so the mouse wont 
+    // be grabbed
+
+    gamestate = GS_DEMOSCREEN;
+    
     last_tic_time = I_GetTime();
 
     while (net_waiting_for_start)