Fix frontend ROOM_CONTROL_ACCESS protocol command handler
authorunc0rr
Wed, 02 Sep 2009 08:53:46 +0000
changeset 2344 63b3da03ce46
parent 2343 3ab763dc14a3
child 2345 daf1785f2337
Fix frontend ROOM_CONTROL_ACCESS protocol command handler
QTfrontend/newnetclient.cpp
--- 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;