From 2a3e0858378db82f92f13c19139e02f6ba16fbe9 Mon Sep 17 00:00:00 2001 From: danij Date: Sun, 18 Apr 2010 06:53:14 +0100 Subject: [PATCH] Fixed DOOM: Both the idclip and idspispopd cheats worked in all variants of DOOM. --- doomsday/plugins/jdoom/src/m_cheat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doomsday/plugins/jdoom/src/m_cheat.c b/doomsday/plugins/jdoom/src/m_cheat.c index 41af8721a8..62d44c003a 100644 --- a/doomsday/plugins/jdoom/src/m_cheat.c +++ b/doomsday/plugins/jdoom/src/m_cheat.c @@ -137,8 +137,10 @@ void Cht_Init(void) G_AddEventSequence(cheatAmmoNoKeySeq, sizeof(cheatAmmoNoKeySeq), Cht_GiveWeaponsAmmoArmor); G_AddEventSequence(cheatAmmoSeq, sizeof(cheatAmmoSeq), Cht_GiveWeaponsAmmoArmorKeys); G_AddEventSequence(cheatMusSeq, sizeof(cheatMusSeq), Cht_MusicFunc); - G_AddEventSequence(cheatNoClipSeq, sizeof(cheatNoClipSeq), Cht_NoClipFunc); - G_AddEventSequence(cheatCommercialNoClipSeq, sizeof(cheatCommercialNoClipSeq), Cht_NoClipFunc); + if(gameMode == commercial) + G_AddEventSequence(cheatCommercialNoClipSeq, sizeof(cheatCommercialNoClipSeq), Cht_NoClipFunc); + else + G_AddEventSequence(cheatNoClipSeq, sizeof(cheatNoClipSeq), Cht_NoClipFunc); G_AddEventSequence(cheatPowerupSeq1, sizeof(cheatPowerupSeq1), Cht_PowerupFunc); G_AddEventSequence(cheatPowerupSeq, sizeof(cheatPowerupSeq), Cht_PowerupMessage); G_AddEventSequence(cheatChoppersSeq, sizeof(cheatChoppersSeq), Cht_ChoppersFunc);