From d8462c5831d31aea81e07d27f5f6cf8ea06a51ff Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 12 Jan 2011 16:43:51 +0100 Subject: [PATCH] Include func_static in AAS calculations unless spawnflags has bit 1 set. --- tools/mbspc/mbspc/aas_map.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/mbspc/mbspc/aas_map.c b/tools/mbspc/mbspc/aas_map.c index 7125a927..6f392fdd 100644 --- a/tools/mbspc/mbspc/aas_map.c +++ b/tools/mbspc/mbspc/aas_map.c @@ -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"))) {