mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user