remove areaportal inside func_group warning

xml_Select such areaportals
automatically moving such areaportals to worldspawn might result in empty group entities, so just warn
This commit is contained in:
Garux
2025-03-02 04:03:03 +05:00
parent e370745488
commit 079f07a4a2
+2 -2
View File
@@ -801,8 +801,8 @@ static void FinishBrush( bool noCollapseGroups, entity_t& mapEnt ){
/* determine if the brush is an area portal */
if ( buildBrush.compileFlags & C_AREAPORTAL ) {
if ( entities.size() != 1 ) {
Sys_FPrintf( SYS_WRN, "Entity %i (%s), Brush %i: areaportals only allowed in world\n", mapEnt.mapEntityNum, mapEnt.classname(), buildBrush.brushNum );
if ( entities.size() != 1 && ( noCollapseGroups || !mapEnt.classname_is( "func_group" ) ) ) {
xml_Select( "areaportals only allowed in world", mapEnt.mapEntityNum, buildBrush.brushNum, false );
return;
}
}