]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
q3map2/smokinguns: fix .tex writing, <3 @vloup
authorThomas Debesse <dev@illwieckz.net>
Sun, 29 Mar 2020 16:47:33 +0000 (18:47 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sun, 29 Mar 2020 18:56:56 +0000 (20:56 +0200)
Thanks ElBarto (@vloup) for reporting this

tools/quake3/q3map2/writebsp.c

index e3b35df1ce0fe96ca6b6a83995a1cc757fcf387d..cc1b352ddc10e7f1d6e0916b7e9e789ce8de54ff 100644 (file)
@@ -561,6 +561,7 @@ void EndBSPFile( qboolean do_write, const char *BSPFilePath, const char *surface
                        char basename[ 1024 ];  
                        char filename[ 1024 ];
                        strncpy( basename, BSPFilePath, sizeof(basename) );
+                       StripExtension( basename );
                        sprintf( filename, "%s.tex", basename );
 
                        /* only create tex file if it is the first compile */