--- a/QTfrontend/newnetclient.cpp Tue Jan 16 22:13:58 2007 +0000
+++ b/QTfrontend/newnetclient.cpp Wed Jan 17 19:56:51 2007 +0000
@@ -24,6 +24,7 @@
#include "gameuiconfig.h"
#include "game.h"
#include "gamecfgwidget.h"
+#include "teamselect.h"
char delimeter='\t';
@@ -65,6 +66,11 @@
team.HHName[5] + delimeter + team.HHName[6] + delimeter + team.HHName[7]);
}
+void HWNewNet::RemoveTeam(const HWTeam & team)
+{
+ RawSendNet(QString("REMOVETEAM:") + delimeter + team.TeamName);
+}
+
void HWNewNet::StartGame()
{
RawSendNet(QString("START:"));
@@ -161,6 +167,12 @@
return;
}
+ if (lst[0] == "REMOVETEAM:") {
+ if(lst.size()<2) return;
+ m_pTeamSelWidget->removeNetTeam(lst[1]);
+ return;
+ }
+
if (lst[0] == "CONFIGASKED") {
isChief=true;
ConfigAsked();
@@ -222,7 +234,6 @@
// "CONNECTED" at round phase, etc.
if (lst[0] == "GAMEMSG:") {
QByteArray em = QByteArray::fromBase64(lst[1].toAscii());
- qDebug() << "to engine:" << em;
emit FromNet(em);
return;
}