From 27e8ce207c9053be03a4ced5d7107eb0d278c6c9 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 29 Mar 2020 18:47:33 +0200 Subject: [PATCH] q3map2/smokinguns: fix .tex writing, <3 @vloup Thanks ElBarto (@vloup) for reporting this --- tools/quake3/q3map2/writebsp.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.2