# HG changeset patch
# User unc0rr
# Date 1317841062 -14400
# Node ID 6e422ea250a1c48f370414b2af312a477fa7b68b
# Parent  c612f24bf162803940414ee8b303f368143b7a62
Tiny cleanup

diff -r c612f24bf162 -r 6e422ea250a1 QTfrontend/mapContainer.cpp
--- a/QTfrontend/mapContainer.cpp	Wed Oct 05 10:05:14 2011 +0200
+++ b/QTfrontend/mapContainer.cpp	Wed Oct 05 22:57:42 2011 +0400
@@ -114,6 +114,8 @@
             QString scheme;
             QString weapons;
             QList<QVariant> mapInfo;
+            bool isMission = mapLuaFile.exists();
+
             QTextStream input(&mapCfgFile);
             input >> theme;
             input >> limit;
@@ -125,16 +127,22 @@
                 mapInfo.push_back(limit);
             else
                 mapInfo.push_back(18);
-            mapInfo.push_back(mapLuaFile.exists());
+
+
+            mapInfo.push_back(isMission);
+
             if (scheme.isEmpty())
                 scheme = "locked";
             scheme.replace("_", " ");
+
             if (weapons.isEmpty())
                 weapons = "locked";
             weapons.replace("_", " ");
+
             mapInfo.push_back(scheme);
             mapInfo.push_back(weapons);
-            if(mapLuaFile.exists())
+
+            if(isMission)
             {
                 chooseMap->insertItem(missionindex++, 
 // FIXME - need real icons. Disabling until then