- changed infighting check so that the static skill checker does not access the level
Instead the level needs to be queried now.
This commit is contained in:
parent
d0942bcb97
commit
1dc11c5032
6 changed files with 16 additions and 7 deletions
|
|
@ -2052,6 +2052,19 @@ void FLevelLocals::SetMusicVolume(float f)
|
|||
I_SetMusicVolume(f);
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//
|
||||
//
|
||||
//
|
||||
//============================================================================
|
||||
|
||||
int FLevelLocals::GetInfighting()
|
||||
{
|
||||
if (flags2 & LEVEL2_TOTALINFIGHTING) return 1;
|
||||
if (flags2 & LEVEL2_NOINFIGHTING) return -1;
|
||||
return G_SkillProperty(SKILLP_Infight);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
// IsPointInMap
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue