--- a/QTfrontend/newnetclient.cpp Sat Jan 31 15:44:07 2009 +0000
+++ b/QTfrontend/newnetclient.cpp Sun Feb 01 15:58:44 2009 +0000
@@ -488,6 +488,10 @@
emit solidChanged(lst[2].toInt() != 0);
return;
}
+ if (lst[1] == "BORDER") {
+ emit borderChanged(lst[2].toInt() != 0);
+ return;
+ }
if (lst[1] == "AMMO") {
if(lst.size() < 4) return;
emit ammoChanged(lst[3], lst[2]);
@@ -562,6 +566,7 @@
onFortsModeChanged(m_pGameCFGWidget->getGameFlags() & 0x1);
onTeamsDivideChanged(m_pGameCFGWidget->getGameFlags() & 0x10);
onSolidChanged(m_pGameCFGWidget->getGameFlags() & 0x04);
+ onBorderChanged(m_pGameCFGWidget->getGameFlags() & 0x08);
// always initialize with default ammo (also avoiding complicated cross-class dependencies)
QString name = m_pGameCFGWidget->WeaponsName->currentText();
QString ammo = m_pGameCFGWidget->WeaponsName->itemData(
@@ -643,6 +648,11 @@
if (isChief) RawSendNet(QString("CONFIG_PARAM%1SOLIDLAND%1%2").arg(delimeter).arg(value));
}
+void HWNewNet::onBorderChanged(bool value)
+{
+ if (isChief) RawSendNet(QString("CONFIG_PARAM%1BORDER%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));