fix another import bsp bug
authorRudolf Polzer <divverent@xonotic.org>
Sun, 19 Feb 2012 17:39:03 +0000 (18:39 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 19 Feb 2012 17:39:03 +0000 (18:39 +0100)
radiant/map.cpp

index 852179de6ef3242684f5a49196e6552a689cafda..bf9891d5106edd4a415013c045d700430219202f 100644 (file)
@@ -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("\"");