Include func_static in AAS calculations unless spawnflags has bit 1 set.

This commit is contained in:
Ben Noordhuis
2011-01-12 16:43:51 +01:00
committed by Garux
parent c897b97e01
commit d8462c5831

View File

@@ -557,8 +557,11 @@ int AAS_ValidEntity(entity_t *mapent)
} //end else if
else if (!strcmp("func_static", ValueForKey(mapent, "classname")))
{
//FIXME: easy/medium/hard/deathmatch specific?
return true;
//include func_static in AAS calculations unless spawnflags & 1
if (!(atoi(ValueForKey(mapent, "spawnflags")) & 1))
{
return true;
}
} //end else if
else if (!strcmp("func_door", ValueForKey(mapent, "classname")))
{