X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=tools%2Fquake2%2Fq2map%2Fwritebsp.c;h=7ab613fd1f39ca5e7bb3e69155b87f42dc8b19cd;hp=8c45d5305c02672aec05d09ac286fa6eb3b44ba1;hb=f33fed31ce7fdaee4829b9486e0f6fccbd9e4764;hpb=58bb028e463094dc96c16e2d330699f2120dc835 diff --git a/tools/quake2/q2map/writebsp.c b/tools/quake2/q2map/writebsp.c index 8c45d530..7ab613fd 100644 --- a/tools/quake2/q2map/writebsp.c +++ b/tools/quake2/q2map/writebsp.c @@ -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 ); }