From: Rudolf Polzer Date: Sun, 19 Feb 2012 17:39:03 +0000 (+0100) Subject: fix another import bsp bug X-Git-Tag: xonotic-v0.6.0~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=95e8ef16a2e789d9727c69395033c0275466cd7c;p=xonotic%2Fnetradiant.git fix another import bsp bug --- 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("\"");