]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/portals.c
crude origin brush generation when decompiling
[xonotic/netradiant.git] / tools / quake3 / q3map2 / portals.c
index 02209d542bfa17a633fce97be609b24fbaeaa9e8..cc3e0d9d392dd509131ae96e97a3ff82b30e7a5e 100644 (file)
@@ -668,9 +668,15 @@ qboolean FloodEntities( tree_t *tree )
                
                /* get origin */
                GetVectorForKey( e, "origin", origin );
+
+               /* as a special case, allow origin-less entities */
                if( VectorCompare( origin, vec3_origin ) ) 
                        continue;
                
+               /* 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 )
+                       continue;
+
                /* handle skybox entities */
                value = ValueForKey( e, "classname" );
                if( !Q_stricmp( value, "_skybox" ) )