root can use sv_cheats now

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40935
This commit is contained in:
David Anderson 2007-06-08 06:31:46 +00:00
parent bc4d7ddc72
commit e85a6d280f

View File

@ -422,7 +422,8 @@ public Action:Command_Cvar(client, args)
/* Do a check for the cheat cvar */ /* Do a check for the cheat cvar */
else if (StrEqual(cvarname, "sv_cheats")) else if (StrEqual(cvarname, "sv_cheats"))
{ {
if (GetUserFlagBits(client) & ADMFLAG_CHEATS) if (GetUserFlagBits(client) & ADMFLAG_CHEATS
|| GetUserFlagBits(client) & ADMFLAG_ROOT)
{ {
allowed = true; allowed = true;
} }