- update of console code.
Backports con_pulsetext and toggle messages for CVARs from Raze.
This commit is contained in:
parent
c415518066
commit
700304bf46
10 changed files with 44 additions and 7 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue