- 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:
parent
484eb347ca
commit
a21f01bc5f
7 changed files with 25 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue