From 3277c11075b4080032618cb4e503f0af71b95132 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 6 Mar 2006 20:44:43 +0000 Subject: Do not run TryRunTics until after we have started demo recording. Fix crash when recording demos. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 408 --- src/d_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/d_main.c b/src/d_main.c index d188def0..94482947 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: d_main.c 400 2006-03-01 17:07:39Z fraggle $ +// $Id: d_main.c 408 2006-03-06 20:44:43Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -184,7 +184,7 @@ //----------------------------------------------------------------------------- -static const char rcsid[] = "$Id: d_main.c 400 2006-03-01 17:07:39Z fraggle $"; +static const char rcsid[] = "$Id: d_main.c 408 2006-03-06 20:44:43Z fraggle $"; #define BGCOLOR 7 #define FGCOLOR 8 @@ -561,6 +561,8 @@ void D_DoomLoop (void) debugfile = fopen (filename,"w"); } + TryRunTics(); + I_InitGraphics (); while (1) @@ -1695,7 +1697,5 @@ void D_DoomMain (void) } - TryRunTics(); - D_DoomLoop (); // never returns } -- cgit v1.2.3