- update of console code.

Backports con_pulsetext and toggle messages for CVARs from Raze.
This commit is contained in:
Christoph Oelckers 2020-09-27 09:35:06 +02:00
commit 700304bf46
10 changed files with 44 additions and 7 deletions

View file

@ -87,8 +87,13 @@ CCMD (toggleconsole)
C_ToggleConsole();
}
bool CheckCheatmode (bool printmsg)
bool CheckCheatmode (bool printmsg, bool sponly)
{
if (sponly && netgame)
{
if (printmsg) Printf("Not in a singleplayer game.\n");
return true;
}
if ((G_SkillProperty(SKILLP_DisableCheats) || netgame || deathmatch) && (!sv_cheats))
{
if (printmsg) Printf ("sv_cheats must be true to enable this command.\n");