From: Thomas Debesse Date: Sun, 29 Mar 2020 16:47:33 +0000 (+0200) Subject: q3map2/smokinguns: fix .tex writing, <3 @vloup X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=27e8ce207c9053be03a4ced5d7107eb0d278c6c9;p=xonotic%2Fnetradiant.git q3map2/smokinguns: fix .tex writing, <3 @vloup Thanks ElBarto (@vloup) for reporting this --- diff --git a/tools/quake3/q3map2/writebsp.c b/tools/quake3/q3map2/writebsp.c index e3b35df1..cc1b352d 100644 --- a/tools/quake3/q3map2/writebsp.c +++ b/tools/quake3/q3map2/writebsp.c @@ -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 */