--- 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();
--- 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);
--- 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 <typename T>
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();