summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2010-11-30 20:44:20 +0000
committerSimon Howard2010-11-30 20:44:20 +0000
commitb8db918b1d45aa8124a4953305edba550a52db6e (patch)
tree823faaafbf811fdfc59f81a5762aea0fe6cae8b0
parent89187a00f3871ae48564cd34057635519f8028e2 (diff)
downloadchocolate-doom-b8db918b1d45aa8124a4953305edba550a52db6e.tar.gz
chocolate-doom-b8db918b1d45aa8124a4953305edba550a52db6e.tar.bz2
chocolate-doom-b8db918b1d45aa8124a4953305edba550a52db6e.zip
Remove "-debugfile" command line option and associated variable.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2179
-rw-r--r--src/d_main.c10
-rw-r--r--src/d_net.c3
-rw-r--r--src/doomstat.h1
-rw-r--r--src/p_setup.c12
4 files changed, 1 insertions, 25 deletions
diff --git a/src/d_main.c b/src/d_main.c
index 10eab2b0..378cc5f3 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -124,8 +124,6 @@ int startmap;
boolean autostart;
int startloadgame;
-FILE* debugfile;
-
boolean advancedemo;
// Store demo, do not accept any inputs
@@ -399,14 +397,6 @@ void D_DoomLoop (void)
if (demorecording)
G_BeginRecording ();
- if (M_CheckParm ("-debugfile"))
- {
- char filename[20];
- sprintf (filename,"debug%i.txt",consoleplayer);
- printf ("debug output to: %s\n",filename);
- debugfile = fopen (filename,"w");
- }
-
TryRunTics();
I_InitGraphics ();
diff --git a/src/d_net.c b/src/d_net.c
index b8e34dec..56f04876 100644
--- a/src/d_net.c
+++ b/src/d_net.c
@@ -405,9 +405,6 @@ void D_CheckNetGame (void)
//
void D_QuitNetGame (void)
{
- if (debugfile)
- fclose (debugfile);
-
#ifdef FEATURE_MULTIPLAYER
NET_SV_Shutdown();
diff --git a/src/doomstat.h b/src/doomstat.h
index 4fc174cd..a0e21a25 100644
--- a/src/doomstat.h
+++ b/src/doomstat.h
@@ -258,7 +258,6 @@ extern int maxammo[NUMAMMO];
// File handling stuff.
extern char * savegamedir;
extern char basedefault[1024];
-extern FILE* debugfile;
// if true, load all graphics at level load
extern boolean precache;
diff --git a/src/p_setup.c b/src/p_setup.c
index 7d9d4318..3fc95cab 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -755,17 +755,7 @@ P_SetupLevel
// Make sure all sounds are stopped before Z_FreeTags.
S_Start ();
-
-#if 0 // UNUSED
- if (debugfile)
- {
- Z_FreeTags (PU_LEVEL, INT_MAX);
- Z_FileDumpHeap (debugfile);
- }
- else
-#endif
- Z_FreeTags (PU_LEVEL, PU_PURGELEVEL-1);
-
+ Z_FreeTags (PU_LEVEL, PU_PURGELEVEL-1);
// UNUSED W_Profile ();
P_InitThinkers ();