diff -r 19ff9bf7d69e -r b0b0510eb82d QTfrontend/newnetclient.cpp --- a/QTfrontend/newnetclient.cpp Thu Oct 09 13:57:18 2008 +0000 +++ b/QTfrontend/newnetclient.cpp Thu Oct 09 15:54:09 2008 +0000 @@ -299,7 +299,6 @@ return; } - if (lst[0] == "TEAM_ACCEPTED") { if (lst.size() != 2) { @@ -310,6 +309,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.size() < 3) { @@ -320,10 +330,6 @@ emit seedChanged(lst[2]); return; } - if (lst[1] == "MAP") { - emit mapChanged(lst[2]); - return; - } if (lst[1] == "THEME") { emit themeChanged(lst[2]); return; @@ -433,7 +439,7 @@ void HWNewNet::onMapChanged(const QString & map) { - if (isChief) RawSendNet(QString("CONFIG_PARAM%1MAP%1%2").arg(delimeter).arg(map)); + if (isChief) RawSendNet(QString("MAP%1%2").arg(delimeter).arg(map)); } void HWNewNet::onThemeChanged(const QString & theme)