foxygit / doom Log in
commit 73c2a3bb31ceaad24ac11bbb8c93c2d76291d418
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Mon Feb 2 09:35:41 2015 +0100
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Mon Feb 2 09:35:41 2015 +0100

    adapt cheat codes for the demo version
---
 src/hexen/sb_bar.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/src/hexen/sb_bar.c b/src/hexen/sb_bar.c
index e75edd25..6ca8fec4 100644
--- a/src/hexen/sb_bar.c
+++ b/src/hexen/sb_bar.c
@@ -303,6 +303,34 @@ void SB_Init(void)
         PatchKILLS = W_CacheLumpName("KILLS", PU_STATIC);
     }
     SB_SetClassData();
+
+    if (gamemode == shareware)
+    {
+	CheatGodSeq = (cheatseq_t) CHEAT("bgokey", 0);
+	CheatNoClipSeq = (cheatseq_t) CHEAT("rjohnson", 0);
+	CheatWeaponsSeq = (cheatseq_t) CHEAT("crhinehart", 0);
+	CheatHealthSeq =  (cheatseq_t) CHEAT("sgurno", 0);
+	CheatKeysSeq = (cheatseq_t) CHEAT("mraymondjudy", 0);
+	CheatSoundSeq = (cheatseq_t) CHEAT("kschilder", 0);
+	CheatTickerSeq = (cheatseq_t) CHEAT("rrettenmund", 0);
+	CheatArtifactAllSeq = (cheatseq_t) CHEAT("braffel", 0);
+	CheatPuzzleSeq = (cheatseq_t) CHEAT("tmoore", 0);
+	CheatWarpSeq = (cheatseq_t) CHEAT("bpelletier", 2);
+	CheatPigSeq = (cheatseq_t) CHEAT("ebiessman", 0);
+	CheatMassacreSeq = (cheatseq_t) CHEAT("cstika", 0);
+	CheatIDKFASeq = (cheatseq_t) CHEAT("rambo", 0);
+	CheatQuickenSeq1 = (cheatseq_t) CHEAT("quicken", 0);
+	CheatQuickenSeq2 = (cheatseq_t) CHEAT("quickenquicken", 0);
+	CheatQuickenSeq3 = (cheatseq_t) CHEAT("quickenquickenquicken", 0);
+	CheatClass1Seq = (cheatseq_t) CHEAT("plipo", 0);
+	CheatClass2Seq = (cheatseq_t) CHEAT("plipo", 1);
+	CheatVersionSeq = (cheatseq_t) CHEAT("pmacarther", 0);
+	CheatDebugSeq = (cheatseq_t) CHEAT("jsumwalt", 0);
+	CheatScriptSeq1 = (cheatseq_t) CHEAT("mwagabaza", 0);
+	CheatScriptSeq2 = (cheatseq_t) CHEAT("mwagabaza", 1);
+	CheatScriptSeq3 = (cheatseq_t) CHEAT("mwagabaza", 2);
+	CheatRevealSeq = (cheatseq_t) CHEAT("reveal", 0);
+    }
 }

 //==========================================================================