Don't save "!MULTI" pseudo-key into team files
authorWuzzy <Wuzzy2@mail.ru>
Mon, 29 Apr 2019 23:13:52 +0200
changeset 14858 b96ba3c1ab67
parent 14857 56293aa24e81
child 14859 aed75d439027
Don't save "!MULTI" pseudo-key into team files
QTfrontend/team.cpp
--- a/QTfrontend/team.cpp	Mon Apr 29 23:12:40 2019 +0200
+++ b/QTfrontend/team.cpp	Mon Apr 29 23:13:52 2019 +0200
@@ -235,7 +235,10 @@
         teamfile.setValue(hh + "Hat", m_hedgehogs[i].Hat);
     }
     for(int i = 0; i < BINDS_NUMBER; i++)
-        teamfile.setValue(QString("Binds/%1").arg(m_binds[i].action), m_binds[i].strbind);
+    {
+        if(QString(m_binds[i].action) != QString("!MULTI"))
+            teamfile.setValue(QString("Binds/%1").arg(m_binds[i].action), m_binds[i].strbind);
+    }
     for(int i = 0; i < MAX_ACHIEVEMENTS; i++)
         if(achievements[i][0][0])
             teamfile.setValue(QString("Achievements/%1").arg(achievements[i][0]), AchievementProgress[i]);