- add a system interface for CheckCheatmode and moved some sound code to the backend.
This commit is contained in:
parent
75afc69306
commit
8aaab153fa
25 changed files with 187 additions and 164 deletions
|
|
@ -43,6 +43,7 @@
|
|||
#include "engineerrors.h"
|
||||
#include "printf.h"
|
||||
#include "palutil.h"
|
||||
#include "i_interface.h"
|
||||
|
||||
|
||||
struct FLatchedValue
|
||||
|
|
@ -1462,7 +1463,7 @@ EXTERN_CVAR(Bool, sv_cheats);
|
|||
|
||||
void FBaseCVar::CmdSet (const char *newval)
|
||||
{
|
||||
if ((GetFlags() & CVAR_CHEAT) && CheckCheatmode ())
|
||||
if ((GetFlags() & CVAR_CHEAT) && sysCallbacks.CheckCheatmode && sysCallbacks.CheckCheatmode(true, false))
|
||||
return;
|
||||
|
||||
MarkUnsafe();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue