- added jpalomo's submission to make freelook a 3-state setting, like crouch and jump. This required moving around the flags a bit so demo compatibility had to be bumped. It may also require adjustment for launchers that can set the dmflags.

This commit is contained in:
Christoph Oelckers 2014-07-26 10:15:07 +02:00
commit a21f01bc5f
7 changed files with 25 additions and 14 deletions

View file

@ -1320,11 +1320,11 @@ bool FLevelLocals::IsCrouchingAllowed() const
bool FLevelLocals::IsFreelookAllowed() const
{
if (level.flags & LEVEL_FREELOOK_NO)
if (dmflags & DF_NO_FREELOOK)
return false;
if (level.flags & LEVEL_FREELOOK_YES)
if (dmflags & DF_YES_FREELOOK)
return true;
return !(dmflags & DF_NO_FREELOOK);
return !(level.flags & LEVEL_FREELOOK_NO);
}
//==========================================================================