]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/q2map/writebsp.c
ported over the 1.5 branch version of q3map2 which is newer
[xonotic/netradiant.git] / tools / quake2 / q2map / writebsp.c
index 7ab613fd1f39ca5e7bb3e69155b87f42dc8b19cd..8c45d5305c02672aec05d09ac286fa6eb3b44ba1 100644 (file)
@@ -495,17 +495,31 @@ void BeginBSPFile (void)
 EndBSPFile
 ============
 */
-void EndBSPFile( void ) {
+void EndBSPFile (void)
+{
        char    path[1024];
 
-       EmitBrushes();
-       EmitPlanes();
-       UnparseEntities();
+#if 0
+       int             len;
+       byte    *buf;
+#endif
+
+       EmitBrushes ();
+       EmitPlanes ();
+       UnparseEntities ();
+
+       // load the pop
+#if 0
+       sprintf (path, "%s/pics/pop.lmp", gamedir);
+       len = LoadFile (path, &buf);
+       memcpy (dpop, buf, sizeof(dpop));
+       free (buf);
+#endif
 
        // write the map
-       sprintf( path, "%s.bsp", source );
-       Sys_Printf( "Writing %s\n", path );
-       WriteBSPFile( path );
+       sprintf (path, "%s.bsp", source);
+       Sys_Printf ("Writing %s\n", path);
+       WriteBSPFile (path);
 }