- 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:
Christoph Oelckers 2019-01-28 14:31:23 +01:00
commit 1dc11c5032
6 changed files with 16 additions and 7 deletions

View file

@ -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
//