--- a/QTfrontend/newnetclient.cpp Wed Sep 02 08:50:45 2009 +0000
+++ b/QTfrontend/newnetclient.cpp Wed Sep 02 08:53:46 2009 +0000
@@ -153,7 +153,7 @@
void HWNewNet::RawSendNet(const QByteArray & buf)
{
-// qDebug() << "Client: " << QString(buf).split("\n");
+ qDebug() << "Client: " << QString(buf).split("\n");
NetSocket.write(buf);
NetSocket.write("\n\n", 2);
}
@@ -202,7 +202,7 @@
void HWNewNet::ParseCmd(const QStringList & lst)
{
-// qDebug() << "Server: " << lst;
+ qDebug() << "Server: " << lst;
if(!lst.size())
{
@@ -554,10 +554,12 @@
qWarning("Net: Bad BYE message");
return;
}
- bool b = lst[1] == "0";
+ bool b = lst[1] != "0";
m_pGameCFGWidget->setEnabled(b);
m_pTeamSelWidget->setInteractivity(b);
isChief = b;
+
+ return;
}
qWarning() << "Net: Unknown message:" << lst;