- use proper CheckCheatMode semantics for throwing players out of chasecam mode if DF2_CHASECAM gets unset.

This commit is contained in:
Christoph Oelckers 2014-10-24 23:02:02 +02:00
parent e662e4321a
commit 15b1c71257
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ CUSTOM_CVAR (Int, dmflags2, 0, CVAR_SERVERINFO)
}
// Come out of chasecam mode if we're not allowed to use chasecam.
if (!(dmflags2 & DF2_CHASECAM) && !G_SkillProperty (SKILLP_DisableCheats) && !sv_cheats)
if (!(dmflags2 & DF2_CHASECAM) && CheckCheatmode(false))
{
// Take us out of chasecam mode only.
if (p->cheats & CF_CHASECAM)