QTfrontend/gamecfgwidget.cpp
changeset 1921 2a09f7f786a0
parent 1898 f0ab0c77946d
child 1979 912e450d4db2
--- a/QTfrontend/gamecfgwidget.cpp	Thu Mar 26 16:20:01 2009 +0000
+++ b/QTfrontend/gamecfgwidget.cpp	Thu Mar 26 16:54:16 2009 +0000
@@ -143,6 +143,8 @@
 	templateFilterChanged(pMapContainer->getTemplateFilter());
 	themeChanged(pMapContainer->getCurrentTheme());
 
+	schemeChanged(GameSchemes->currentIndex());
+
 	// map must be the last
 	QString map = pMapContainer->getCurrentMap();
 	if (map.size())
@@ -166,38 +168,6 @@
 			pMapContainer->setTheme(value);
 			return;
 		}
-		if (param == "HEALTH") {
-//			SB_InitHealth->setValue(value.toUInt());
-			return;
-		}
-		if (param == "TURNTIME") {
-//			SB_TurnTime->setValue(value.toUInt());
-			return;
-		}
-		if (param == "SD_TURNS") {
-//			SB_SuddenDeath->setValue(value.toUInt());
-			return;
-		}
-		if (param == "CASEFACTOR") {
-//			SB_CaseProb->setValue(value.toUInt());
-			return;
-		}
-		if (param == "FORTSMODE") {
-//			CB_mode_Forts->setChecked(value.toUInt() != 0);
-			return;
-		}
-		if (param == "DIVIDETEAMS") {
-//			CB_teamsDivide->setChecked(value.toUInt() != 0);
-			return;
-		}
-		if (param == "SOLIDLAND") {
-//			CB_solid->setChecked(value.toUInt() != 0);
-			return;
-		}
-		if (param == "BORDER") {
-//			CB_border->setChecked(value.toUInt() != 0);
-			return;
-		}
 		if (param == "TEMPLATE") {
 			pMapContainer->setTemplateFilter(value.toUInt());
 			return;
@@ -211,6 +181,8 @@
 			return;
 		}
 	}
+	
+	qWarning("Got bad config param from net");
 }
 
 void GameCFGWidget::ammoChanged(int index)