CBaseEntity: Added support for the Not In Deathmatch spawnflag.
This commit is contained in:
parent
b25d3fa082
commit
66eec0128d
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue