CBaseEntity: Added support for the Not In Deathmatch spawnflag.

This commit is contained in:
Marco Cawthorne 2019-01-16 07:53:01 +01:00
parent b25d3fa082
commit 66eec0128d

View file

@ -36,6 +36,14 @@ class CBaseEntity
void CBaseEntity :: CBaseEntity ( void )
{
/* Not in Deathmatch */
if (spawnflags & 2048) {
if (cvar("sv_playerslots") > 1) {
remove(this);
return;
}
}
gflags |= GF_CANRESPAWN;
m_oldModel = Util_FixModel(model);
m_oldSolid = solid;