X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=tools%2Fquake3%2Fq3map2%2Fleakfile.c;h=243af8a3c45ea0e3dc10775ed00da2be74c711f6;hp=5d448ba54045ac7241688550b328ae8500c3e758;hb=b13a86abcfa99aa0898d11e90a9c4e811b55d432;hpb=62d99f889c0e98be65f779d3983109c84ce58cec diff --git a/tools/quake3/q3map2/leakfile.c b/tools/quake3/q3map2/leakfile.c index 5d448ba5..243af8a3 100644 --- a/tools/quake3/q3map2/leakfile.c +++ b/tools/quake3/q3map2/leakfile.c @@ -43,7 +43,7 @@ LEAK FILE GENERATION - Save out name.line for qe3 to read + Save out name.lin for qe3 to read ============================================================================== */ @@ -59,10 +59,9 @@ TTimo: builds a polyline xml node ============= */ -xmlNodePtr LeakFile( tree_t *tree ){ +xmlNodePtr LeakFile( tree_t *tree, const char *filename ){ vec3_t mid; FILE *linefile; - char filename[1024]; node_t *node; int count; xmlNodePtr xml_node, point; @@ -76,7 +75,6 @@ xmlNodePtr LeakFile( tree_t *tree ){ // // write the points to the file // - sprintf( filename, "%s.lin", source ); linefile = fopen( filename, "w" ); if ( !linefile ) { Error( "Couldn't open %s\n", filename );