Skip to content

Commit

Permalink
src/d_main: Account for lack of DEBUG define
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Jan 17, 2021
1 parent 0171d2d commit 668382d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ int startepisode;
int startmap;
boolean autostart;

#ifdef DEBUG
FILE* debugfile;
#endif

boolean advancedemo;

Expand Down Expand Up @@ -358,13 +360,15 @@ void D_DoomLoop (void)
if (demorecording)
G_BeginRecording ();

#ifdef DEBUG
if (M_CheckParm ("-debugfile"))
{
char filename[20];
sprintf (filename,"debug%i.txt",consoleplayer);
printf ("debug output to: %s\n",filename);
debugfile = fopen (filename,"w");
}
#endif

I_InitGraphics ();

Expand Down

0 comments on commit 668382d

Please sign in to comment.