]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/qe3.cpp
menus...
[xonotic/netradiant.git] / radiant / qe3.cpp
index 82d5d85571d3233f08fbffaffa78741547ef181c..95940b1710c4781fb22f009a7ca4c2c390047381 100644 (file)
@@ -168,7 +168,15 @@ void bsp_init(){
        StringOutputStream name( 256 );
        name << StringRange( mapname, path_get_filename_base_end( mapname ) ) << ".bsp";
 
-       build_set_variable( "MapFile", mapname );
+       if( region_active ){
+               StringOutputStream name( 256 );
+               name << StringRange( mapname, path_get_filename_base_end( mapname ) ) << ".reg";
+               build_set_variable( "MapFile", name.c_str() );
+       }
+       else{
+               build_set_variable( "MapFile", mapname );
+       }
+
        build_set_variable( "BspFile", name.c_str() );
 }