diff options
author | Simon Howard | 2008-09-23 23:12:03 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-23 23:12:03 +0000 |
commit | fb176d6121a9313cd98cd015045d239ddfef3994 (patch) | |
tree | ca696ac4195e62bc46ba88c8500fd16eb87e1594 /src/doom/deh_cheat.c | |
parent | 350fe185784d6d0350ed8b675630440ff425a6ca (diff) | |
parent | 5bab2a788da04bd8aaa65891cb3fc7240d56a9b7 (diff) | |
download | chocolate-doom-fb176d6121a9313cd98cd015045d239ddfef3994.tar.gz chocolate-doom-fb176d6121a9313cd98cd015045d239ddfef3994.tar.bz2 chocolate-doom-fb176d6121a9313cd98cd015045d239ddfef3994.zip |
Merge updates from trunk.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1266
Diffstat (limited to 'src/doom/deh_cheat.c')
-rw-r--r-- | src/doom/deh_cheat.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/doom/deh_cheat.c b/src/doom/deh_cheat.c index d4ea9113..b953c8a8 100644 --- a/src/doom/deh_cheat.c +++ b/src/doom/deh_cheat.c @@ -121,7 +121,10 @@ static void DEH_CheatParseLine(deh_context_t *context, char *line, void *tag) break; } - cheat->seq->sequence[i] = unsvalue[i]; + if (deh_apply_cheats) + { + cheat->seq->sequence[i] = unsvalue[i]; + } ++i; // Absolute limit - don't exceed @@ -133,7 +136,10 @@ static void DEH_CheatParseLine(deh_context_t *context, char *line, void *tag) } } - cheat->seq->sequence[i] = '\0'; + if (deh_apply_cheats) + { + cheat->seq->sequence[i] = '\0'; + } } deh_section_t deh_section_cheat = |