]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/q2map/writebsp.c
misc fixes
[xonotic/netradiant.git] / tools / quake2 / q2map / writebsp.c
index 8c45d5305c02672aec05d09ac286fa6eb3b44ba1..7ab613fd1f39ca5e7bb3e69155b87f42dc8b19cd 100644 (file)
@@ -495,31 +495,17 @@ void BeginBSPFile (void)
 EndBSPFile
 ============
 */
-void EndBSPFile (void)
-{
+void EndBSPFile( void ) {
        char    path[1024];
 
-#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
+       EmitBrushes();
+       EmitPlanes();
+       UnparseEntities();
 
        // 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 );
 }