mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
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:
parent
96c30ffade
commit
a6842482de
1 changed files with 16 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue