From 02ed6c1bb5b1fbdd6aa1d41b01e1c374d8c86e5d Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 8 Jan 2006 05:04:50 +0000 Subject: Don't grab the mouse on the net waiting screen Subversion-branch: /trunk/chocolate-doom Subversion-revision: 269 --- src/net_gui.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/net_gui.c b/src/net_gui.c index 7a41f217..a8307d2e 100644 --- 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 @@ void NET_WaitForStart(void) 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) -- cgit v1.2.3