From: Rudolf Polzer Date: Tue, 14 Dec 2010 21:08:25 +0000 (+0100) Subject: add [BspFile] to be used in compile command lines to explicitly refer to the .bsp X-Git-Tag: xonotic-v0.5.0~116 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0e0197b7930f497ad70ce93a0863a51fff1b7644;p=xonotic%2Fnetradiant.git add [BspFile] to be used in compile command lines to explicitly refer to the .bsp --- 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()