# HG changeset patch # User unc0rr # Date 1251827173 0 # Node ID 3b35fd5f67c77bf75378932c97a072f4b1990e5d # Parent f1bbcca1ae077de71b9e26fc5776696605e1c20d Fix a bug when you are unable to do anything in lobby when room is closed during round diff -r f1bbcca1ae07 -r 3b35fd5f67c7 QTfrontend/newnetclient.cpp --- a/QTfrontend/newnetclient.cpp Sun Aug 30 16:30:18 2009 +0000 +++ b/QTfrontend/newnetclient.cpp Tue Sep 01 17:46:13 2009 +0000 @@ -548,6 +548,18 @@ return; } + if (lst[0] == "ROOM_CONTROL_ACCESS") { + if (lst.size() < 2) + { + qWarning("Net: Bad BYE message"); + return; + } + bool b = lst[1] == "0"; + m_pGameCFGWidget->setEnabled(b); + m_pTeamSelWidget->setInteractivity(b); + isChief = b; + } + qWarning() << "Net: Unknown message:" << lst; } @@ -618,7 +630,7 @@ void HWNewNet::gameFinished() { - netClientState = 3; + if (netClientState == 5) netClientState = 3; RawSendNet(QString("ROUNDFINISHED")); }