--- a/QTfrontend/newnetclient.cpp Fri Feb 20 19:40:55 2009 +0000
+++ b/QTfrontend/newnetclient.cpp Fri Feb 20 19:46:22 2009 +0000
@@ -437,23 +437,17 @@
return;
}
- if (lst[0] == "MAP") {
- if (lst.size() != 2)
- {
- qWarning("Net: Bad MAP message");
- return;
- }
- emit mapChanged(lst[1]);
- return;
- }
-
- if (lst[0] == "CONFIG_PARAM") {
+ if (lst[0] == "CFG") {
if(lst.size() < 3)
{
qWarning("Net: Bad CONFIG_PARAM message");
return;
}
+ if (lst[1] == "MAP") {
+ emit mapChanged(lst[2]);
+ return;
+ }
if (lst[1] == "SEED") {
emit seedChanged(lst[2]);
return;
@@ -614,7 +608,7 @@
void HWNewNet::onMapChanged(const QString & map)
{
- if (isChief) RawSendNet(QString("MAP%1%2").arg(delimeter).arg(map));
+ if (isChief) RawSendNet(QString("CONFIG_PARAM%1MAP%1%2").arg(delimeter).arg(map));
}
void HWNewNet::onThemeChanged(const QString & theme)