summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-01-08 18:13:33 +0000
committerSimon Howard2006-01-08 18:13:33 +0000
commit42dca84eea91a2aed60f56c9977a3a9b74fff439 (patch)
treef2ba22eb93cf2a2a20662bf8244407f88ccc696d /src
parent89d1fc32d35bd53eb66d7b5d568a147ddc36509f (diff)
downloadchocolate-doom-42dca84eea91a2aed60f56c9977a3a9b74fff439.tar.gz
chocolate-doom-42dca84eea91a2aed60f56c9977a3a9b74fff439.tar.bz2
chocolate-doom-42dca84eea91a2aed60f56c9977a3a9b74fff439.zip
show_endoom config file option to disable the endoom screen
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 274
Diffstat (limited to 'src')
-rw-r--r--src/i_system.c16
-rw-r--r--src/m_misc.c10
2 files changed, 20 insertions, 6 deletions
diff --git a/src/i_system.c b/src/i_system.c
index ad40d532..739e57d0 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_system.c 234 2005-12-30 18:50:53Z fraggle $
+// $Id: i_system.c 274 2006-01-08 18:13:33Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.16 2006/01/08 18:13:32 fraggle
+// show_endoom config file option to disable the endoom screen
+//
// Revision 1.15 2005/12/30 18:50:53 fraggle
// Millisecond clock function
//
@@ -75,7 +78,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_system.c 234 2005-12-30 18:50:53Z fraggle $";
+rcsid[] = "$Id: i_system.c 274 2006-01-08 18:13:33Z fraggle $";
#include <stdlib.h>
@@ -102,7 +105,7 @@ rcsid[] = "$Id: i_system.c 234 2005-12-30 18:50:53Z fraggle $";
int mb_used = 6;
-
+int show_endoom = 1;
void
I_Tactile
@@ -261,7 +264,12 @@ void I_Quit (void)
I_ShutdownMusic();
M_SaveDefaults ();
I_ShutdownGraphics();
- I_Endoom();
+
+ if (show_endoom)
+ {
+ I_Endoom();
+ }
+
exit(0);
}
diff --git a/src/m_misc.c b/src/m_misc.c
index 4af77c05..17e5c787 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: m_misc.c 202 2005-10-16 01:18:10Z fraggle $
+// $Id: m_misc.c 274 2006-01-08 18:13:33Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -23,6 +23,9 @@
//
//
// $Log$
+// Revision 1.14 2006/01/08 18:13:33 fraggle
+// show_endoom config file option to disable the endoom screen
+//
// Revision 1.13 2005/10/16 01:18:10 fraggle
// Global "configdir" variable with directory to store config files in.
// Create a function to find the filename for a savegame slot. Store
@@ -83,7 +86,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: m_misc.c 202 2005-10-16 01:18:10Z fraggle $";
+rcsid[] = "$Id: m_misc.c 274 2006-01-08 18:13:33Z fraggle $";
#include <stdio.h>
#include <stdlib.h>
@@ -269,6 +272,8 @@ extern int numChannels;
extern char* chat_macros[];
+extern int show_endoom;
+
// dos specific options: these are unused but should be maintained
// so that the config file can be shared between chocolate
// doom and doom.exe
@@ -372,6 +377,7 @@ static default_t extra_defaults_list[] =
{"screenmultiply", &screenmultiply},
{"novert", &novert},
{"mouse_acceleration", &mouse_acceleration, DEFAULT_FLOAT},
+ {"show_endoom", &show_endoom},
};
static default_collection_t extra_defaults =