- 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

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. // 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. // Take us out of chasecam mode only.
if (p->cheats & CF_CHASECAM) if (p->cheats & CF_CHASECAM)