# HG changeset patch # User unc0rr # Date 1251881626 0 # Node ID 63b3da03ce469867891a24c3f7dd5f7aa9b59425 # Parent 3ab763dc14a3404c484dd39936cedf3435b7f8b5 Fix frontend ROOM_CONTROL_ACCESS protocol command handler diff -r 3ab763dc14a3 -r 63b3da03ce46 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;