summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-01-02 21:52:06 +0000
committerSimon Howard2006-01-02 21:52:06 +0000
commitd23401d19ca2434c6c37f2169895db24957309e1 (patch)
tree716cef1ec710dd318a6af09fc841bd797574a4b8 /src
parentfba617a6b4504c9a21f2a7f0749570f741fa8254 (diff)
downloadchocolate-doom-d23401d19ca2434c6c37f2169895db24957309e1.tar.gz
chocolate-doom-d23401d19ca2434c6c37f2169895db24957309e1.tar.bz2
chocolate-doom-d23401d19ca2434c6c37f2169895db24957309e1.zip
Move I_InitGraphics call to be invoked earlier in D_DoomMain. Call the
NET_WaitForStart function to wait for a start signal in network games. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 253
Diffstat (limited to 'src')
-rw-r--r--src/d_main.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/d_main.c b/src/d_main.c
index 89b6c472..c6044bdf 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: d_main.c 241 2006-01-02 00:17:42Z fraggle $
+// $Id: d_main.c 253 2006-01-02 21:52:06Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,10 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.35 2006/01/02 21:52:06 fraggle
+// Move I_InitGraphics call to be invoked earlier in D_DoomMain. Call the
+// NET_WaitForStart function to wait for a start signal in network games.
+//
// Revision 1.34 2006/01/02 00:17:42 fraggle
// Encapsulate the event queue code properly. Add a D_PopEvent function
// to read a new event from the event queue.
@@ -154,7 +158,7 @@
//-----------------------------------------------------------------------------
-static const char rcsid[] = "$Id: d_main.c 241 2006-01-02 00:17:42Z fraggle $";
+static const char rcsid[] = "$Id: d_main.c 253 2006-01-02 21:52:06Z fraggle $";
#define BGCOLOR 7
#define FGCOLOR 8
@@ -532,8 +536,6 @@ void D_DoomLoop (void)
debugfile = fopen (filename,"w");
}
- I_InitGraphics ();
-
while (1)
{
// frame syncronous IO operations
@@ -1577,6 +1579,10 @@ void D_DoomMain (void)
printf ("ST_Init: Init status bar.\n");
ST_Init ();
+ I_InitGraphics ();
+
+ NET_WaitForStart();
+
// start the apropriate game based on parms
p = M_CheckParm ("-record");