Allow certain debugging-specific cheats to be used from the console even in skill 4.

git-svn-id: https://svn.eduke32.com/eduke32@6332 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-07-06 14:43:17 +00:00
parent 96c30ffade
commit a6842482de

View file

@ -230,15 +230,27 @@ void G_DoCheats(void)
if (osdcmd_cheatsinfo_stat.cheatnum != -1) if (osdcmd_cheatsinfo_stat.cheatnum != -1)
{ {
cheatNum = osdcmd_cheatsinfo_stat.cheatnum;
if (ud.player_skill == 4) if (ud.player_skill == 4)
{ {
P_DoQuote(QUOTE_CHEATS_DISABLED, pPlayer); switch (cheatNum)
osdcmd_cheatsinfo_stat.cheatnum = -1; {
return; case CHEAT_DEBUG:
case CHEAT_COORDS:
case CHEAT_RATE:
case CHEAT_RESERVED:
case CHEAT_RESERVED2:
case CHEAT_RESERVED3:
break;
default:
P_DoQuote(QUOTE_CHEATS_DISABLED, pPlayer);
osdcmd_cheatsinfo_stat.cheatnum = -1;
return;
}
} }
// JBF 20030914 // JBF 20030914
cheatNum = osdcmd_cheatsinfo_stat.cheatnum;
osdcmd_cheatsinfo_stat.cheatnum = -1; osdcmd_cheatsinfo_stat.cheatnum = -1;
consoleCheat = 1; consoleCheat = 1;
} }