QTfrontend/newnetclient.cpp
changeset 1782 e7589e37a6d6
parent 1742 cf97d1eecb12
child 1784 dfe9bafb4590
--- a/QTfrontend/newnetclient.cpp	Sat Jan 31 11:58:09 2009 +0000
+++ b/QTfrontend/newnetclient.cpp	Sat Jan 31 15:39:53 2009 +0000
@@ -468,6 +468,14 @@
 			emit turnTimeChanged(lst[2].toUInt());
 			return;
 		}
+		if (lst[1] == "SD_TURNS") {
+			emit suddenDeathTurnsChanged(lst[2].toUInt());
+			return;
+		}
+		if (lst[1] == "CASEFACTOR") {
+			emit caseProbabilityChanged(lst[2].toUInt());
+			return;
+		}
 		if (lst[1] == "FORTSMODE") {
 			emit fortsModeChanged(lst[2].toInt() != 0);
 			return;
@@ -610,6 +618,16 @@
 	if (isChief) RawSendNet(QString("CONFIG_PARAM%1TURNTIME%1%2").arg(delimeter).arg(time));
 }
 
+void HWNewNet::onSuddenDeathTurnsChanged(int turns)
+{
+	if (isChief) RawSendNet(QString("CONFIG_PARAM%1SD_TURNS%1%2").arg(delimeter).arg(turns));
+}
+
+void HWNewNet::onCaseProbabilityChanged(int prob)
+{
+	if (isChief) RawSendNet(QString("CONFIG_PARAM%1CASEFACTOR%1%2").arg(delimeter).arg(prob));
+}
+
 void HWNewNet::onFortsModeChanged(bool value)
 {
 	if (isChief) RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value));