QTfrontend/newnetclient.cpp
changeset 2340 3b35fd5f67c7
parent 2335 0a61a3c2efc4
child 2344 63b3da03ce46
--- 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"));
 }