--- a/QTfrontend/newnetclient.cpp Sun Oct 26 17:23:04 2008 +0000
+++ b/QTfrontend/newnetclient.cpp Sun Oct 26 17:39:33 2008 +0000
@@ -385,6 +385,10 @@
emit fortsModeChanged(lst[2].toInt() != 0);
return;
}
+ if (lst[1] == "DIVIDETEAMS") {
+ emit teamsDivideChanged(lst[2].toInt() != 0);
+ return;
+ }
if (lst[1] == "AMMO") {
if(lst.size() < 4) return;
emit ammoChanged(lst[3], lst[2]);
@@ -486,12 +490,12 @@
if (isChief) RawSendNet(QString("CONFIG_PARAM%1THEME%1%2").arg(delimeter).arg(theme));
}
-void HWNewNet::onInitHealthChanged(quint32 health)
+void HWNewNet::onInitHealthChanged(int health)
{
if (isChief) RawSendNet(QString("CONFIG_PARAM%1HEALTH%1%2").arg(delimeter).arg(health));
}
-void HWNewNet::onTurnTimeChanged(quint32 time)
+void HWNewNet::onTurnTimeChanged(int time)
{
if (isChief) RawSendNet(QString("CONFIG_PARAM%1TURNTIME%1%2").arg(delimeter).arg(time));
}
@@ -501,6 +505,11 @@
if (isChief) RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value));
}
+void HWNewNet::onTeamsDivideChanged(bool value)
+{
+ if (isChief) RawSendNet(QString("CONFIG_PARAM%1DIVIDETEAMS%1%2").arg(delimeter).arg(value));
+}
+
void HWNewNet::onWeaponsNameChanged(const QString& name, const QString& ammo)
{
if (isChief) RawSendNet(QString("CONFIG_PARAM%1AMMO%1%2%1%3").arg(delimeter).arg(ammo).arg(name));