summaryrefslogtreecommitdiff
path: root/src/doom/deh_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doom/deh_main.c')
-rw-r--r--src/doom/deh_main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/doom/deh_main.c b/src/doom/deh_main.c
index 9d528b0a..59e63ea3 100644
--- a/src/doom/deh_main.c
+++ b/src/doom/deh_main.c
@@ -69,6 +69,10 @@ boolean deh_allow_long_strings = false;
boolean deh_allow_long_cheats = false;
+// If false, dehacked cheat replacements are ignored.
+
+boolean deh_apply_cheats = true;
+
//
// List of section types:
//
@@ -384,6 +388,17 @@ void DEH_Init(void)
InitialiseSections();
//!
+ // @category mod
+ //
+ // Ignore cheats in dehacked files.
+ //
+
+ if (M_CheckParm("-nocheats") > 0)
+ {
+ deh_apply_cheats = false;
+ }
+
+ //!
// @arg <files>
// @category mod
//