ref: d23401d19ca2434c6c37f2169895db24957309e1
parent: fba617a6b4504c9a21f2a7f0749570f741fa8254
author: Simon Howard <[email protected]>
date: Mon Jan 2 16:52:06 EST 2006
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
--- 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 @@
debugfile = fopen (filename,"w");
}
- I_InitGraphics ();
-
while (1)
{
// frame syncronous IO operations
@@ -1576,6 +1578,10 @@
printf ("ST_Init: Init status bar.\n");
ST_Init ();
+
+ I_InitGraphics ();
+
+ NET_WaitForStart();
// start the apropriate game based on parms
p = M_CheckParm ("-record");