From 95e8ef16a2e789d9727c69395033c0275466cd7c Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 19 Feb 2012 18:39:03 +0100 Subject: [PATCH] fix another import bsp bug --- radiant/map.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radiant/map.cpp b/radiant/map.cpp index 852179de..bf9891d5 100644 --- a/radiant/map.cpp +++ b/radiant/map.cpp @@ -1696,7 +1696,9 @@ tryDecompile: output.push_string(gamename_get()); output.push_string(" -convert -format "); output.push_string(Brush::m_type == eBrushTypeQuake3BP ? "map_bp" : "map"); - output.push_string(" -readmap \""); + if(extension_equal(path_get_extension(filename), "map")) + output.push_string(" -readmap "); + output.push_string(" \""); output.push_string(filename); output.push_string("\""); -- 2.39.2