X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fq3map2%2Fportals.c;fp=tools%2Fquake3%2Fq3map2%2Fportals.c;h=944b6d8272ed29a3cc9a7c4339ffa809d4560eae;hb=bca4840507fc1d66a34d7c253b146a08d49e02c0;hp=e16c12c76a253fe8be641316743b80abf050fd56;hpb=d5d6e981910d68cc6604e15833a431ebf3fe7aac;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/q3map2/portals.c b/tools/quake3/q3map2/portals.c index e16c12c7..944b6d82 100644 --- a/tools/quake3/q3map2/portals.c +++ b/tools/quake3/q3map2/portals.c @@ -644,7 +644,7 @@ Marks all nodes that can be reached by entites ============= */ -qboolean FloodEntities( tree_t *tree ) +int FloodEntities( tree_t *tree ) { int i, s; vec3_t origin, offset, scale, angles; @@ -739,11 +739,17 @@ qboolean FloodEntities( tree_t *tree ) Sys_FPrintf( SYS_VRB, "%9d flooded leafs\n", c_floodedleafs ); if( !inside ) + { Sys_FPrintf( SYS_VRB, "no entities in open -- no filling\n" ); - else if( tree->outside_node.occupied ) - Sys_FPrintf( SYS_VRB, "entity reached from outside -- no filling\n" ); + return FLOODENTITIES_EMPTY; + } + if( tree->outside_node.occupied ) + { + Sys_FPrintf( SYS_VRB, "entity reached from outside -- leak detected\n" ); + return FLOODENTITIES_LEAKED; + } - return (qboolean) (inside && !tree->outside_node.occupied); + return FLOODENTITIES_GOOD; } /*