]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/shaders.c
merge branch work back into trunk
[xonotic/netradiant.git] / tools / quake3 / q3map2 / shaders.c
index 29398a1e907f3f494b23366d50e12ccf79024478..8d974b5276546e3f6a87a81b968c89bd1bbc4377 100644 (file)
@@ -1,6 +1,6 @@
 /* -------------------------------------------------------------------------------
 
-Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
 For a list of contributors, see the accompanying CONTRIBUTORS file.
 
 This file is part of GtkRadiant.
@@ -380,12 +380,13 @@ void WriteMapShaderFile( void )
 
                /* print it to the file */
                fprintf( file, "%s%s\n", si->shader, si->shaderText );
-               //%     Sys_Printf( "%s%s\n", si->shader, si->shaderText ); /* FIXME: remove debugging code */
+               //Sys_Printf( "%s%s\n", si->shader, si->shaderText ); /* FIXME: remove debugging code */
                
                Sys_FPrintf( SYS_VRB, "." );
        }
        
        /* close the shader */
+       fflush( file );
        fclose( file );
        
        Sys_FPrintf( SYS_VRB, "\n" );