]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
treat entity leak different from entity in solid (the latter should not cause a leak...
authorRudolf Polzer <divverent@alientrap.org>
Sun, 2 Jan 2011 19:42:33 +0000 (20:42 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 2 Jan 2011 19:42:33 +0000 (20:42 +0100)
tools/quake3/q3map2/portals.c

index cc3e0d9d392dd509131ae96e97a3ff82b30e7a5e..2efc1db47c0ea1bcad12fa27bcae6d214038cf92 100644 (file)
@@ -725,7 +725,11 @@ qboolean FloodEntities( tree_t *tree )
                r = PlaceOccupant( headnode, origin, e, skybox );
                if( r )
                        inside = qtrue;
                r = PlaceOccupant( headnode, origin, e, skybox );
                if( r )
                        inside = qtrue;
-               if( (!r || tree->outside_node.occupied) && !tripped )
+               if( !r )
+               {
+                       Sys_Printf( "Entity %i, Brush %i: Entity in solid\n", e->mapEntityNum, 0);
+               }
+               else if( tree->outside_node.occupied && !tripped )
                {
                        xml_Select( "Entity leaked", e->mapEntityNum, 0, qfalse );
                        tripped = qtrue;
                {
                        xml_Select( "Entity leaked", e->mapEntityNum, 0, qfalse );
                        tripped = qtrue;