# HG changeset patch # User unc0rr # Date 1168780995 0 # Node ID 95625db21bf83b7c983069a2d623d4a711361e3f # Parent a281ff0803f1c84e8c0c038d1b88bf1eaf063810 Oops, I should be more careful diff -r a281ff0803f1 -r 95625db21bf8 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Sun Jan 14 13:16:55 2007 +0000 +++ b/QTfrontend/hwform.cpp Sun Jan 14 13:23:15 2007 +0000 @@ -77,7 +77,6 @@ connect(ui.pageNet->BtnNetSvrStart, SIGNAL(clicked()), this, SLOT(NetStartServer())); connect(ui.pageNetGame->BtnBack, SIGNAL(clicked()), this, SLOT(GoBack())); - connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamWillPlay(HWTeam)), this, SLOT(NetAddTeam(HWTeam))); connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), this, SLOT(NetStartGame())); connect(ui.pageNetChat->BtnDisconnect, SIGNAL(clicked()), this, SLOT(NetDisconnect())); @@ -292,11 +291,6 @@ hwnet->JoinGame("#hw"); } -void HWForm::NetAddTeam(HWTeam team) -{ - hwnet->AddTeam(team); -} - void HWForm::NetStartGame() { hwnet->StartGame(); diff -r a281ff0803f1 -r 95625db21bf8 QTfrontend/hwform.h --- a/QTfrontend/hwform.h Sun Jan 14 13:16:55 2007 +0000 +++ b/QTfrontend/hwform.h Sun Jan 14 13:23:15 2007 +0000 @@ -64,7 +64,6 @@ void NetJoin(); void NetCreate(); void AddGame(const QString & chan); - void NetAddTeam(HWTeam team); void NetGameEnter(); void NetStartGame(); void ChangeInNetTeams(const QStringList & teams); diff -r a281ff0803f1 -r 95625db21bf8 QTfrontend/newnetclient.h --- a/QTfrontend/newnetclient.h Sun Jan 14 13:16:55 2007 +0000 +++ b/QTfrontend/newnetclient.h Sun Jan 14 13:23:15 2007 +0000 @@ -38,7 +38,6 @@ void Connect(const QString & hostName, quint16 port, const QString & nick); void Disconnect(); void JoinGame(const QString & game); - void AddTeam(const HWTeam & team); void StartGame(); private: @@ -54,7 +53,7 @@ template void SendCfgStrNet(T a) { QByteArray strmsg; - strmsg.append(a); + strmsg.append(a); quint8 sz = strmsg.size(); QByteArray enginemsg = QByteArray((char *)&sz, 1) + strmsg; QString _msg = delimeter + QString(enginemsg.toBase64()); @@ -85,6 +84,7 @@ public slots: void SendNet(const QByteArray & buf); + void AddTeam(const HWTeam & team); private slots: void ClientRead();