From e1f3b25bc655697026d4de05fbdf4e74d2701ccb Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 14 Dec 2020 08:36:55 +0300 Subject: [PATCH] consider _decal in leak detection point entities recognition is malformed in general leak is about point entities, detection by origin key presence is weak, because there may exist entity w/o this key at 0 0 0 group entities may have origin too detection by primitives presence haven't been working for _decal, as its primitive gets freed at this point --- tools/quake3/q3map2/portals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/portals.c b/tools/quake3/q3map2/portals.c index 834b8687..25d30221 100644 --- a/tools/quake3/q3map2/portals.c +++ b/tools/quake3/q3map2/portals.c @@ -673,7 +673,7 @@ int FloodEntities( tree_t *tree ){ } #endif /* also allow bmodel entities outside, as they could be on a moving path that will go into the map */ - if ( e->brushes != NULL || e->patches != NULL ) { + if ( e->brushes != NULL || e->patches != NULL || ent_class_is( e, "_decal" ) ) { //_decal primitive is freed at this point continue; }