From 0e0197b7930f497ad70ce93a0863a51fff1b7644 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 14 Dec 2010 22:08:25 +0100 Subject: [PATCH] add [BspFile] to be used in compile command lines to explicitly refer to the .bsp --- radiant/qe3.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/radiant/qe3.cpp b/radiant/qe3.cpp index c707d561..67ffebec 100644 --- a/radiant/qe3.cpp +++ b/radiant/qe3.cpp @@ -178,7 +178,12 @@ void bsp_init() build_set_variable("MonitorAddress", (g_WatchBSP_Enabled) ? "127.0.0.1:39000" : ""); build_set_variable("GameName", gamename_get()); - build_set_variable("MapFile", Map_Name(g_map)); + const char* mapname = Map_Name(g_map); + StringOutputStream name(256); + name << StringRange(mapname, path_get_filename_base_end(mapname)) << ".bsp"; + + build_set_variable("MapFile", mapname); + build_set_variable("BspFile", name.c_str()); } void bsp_shutdown() -- 2.39.2