From 9b2109a5ee9a805d7d9b481259b22c036380da00 Mon Sep 17 00:00:00 2001 From: Garux Date: Tue, 24 Oct 2017 21:56:34 +0300 Subject: [PATCH] * don't save .map and snapshots during .reg (region) compilations --- radiant/qe3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radiant/qe3.cpp b/radiant/qe3.cpp index e835276d..b5d414f1 100644 --- a/radiant/qe3.cpp +++ b/radiant/qe3.cpp @@ -256,16 +256,16 @@ void RunBSP( const char* name ){ return; } - SaveMap(); + if( !g_region_active ) + SaveMap(); if ( Map_Unnamed( g_map ) ) { - globalOutputStream() << "build cancelled\n"; + globalErrorStream() << "build cancelled: the map is unnamed\n"; return; } - if ( g_SnapShots_Enabled && !Map_Unnamed( g_map ) && Map_Modified( g_map ) ) { + if ( !g_region_active && g_SnapShots_Enabled && Map_Modified( g_map ) ) Map_Snapshot(); - } if ( g_region_active ) { const char* mapname = Map_Name( g_map );