QTfrontend/newnetclient.cpp
changeset 2345 daf1785f2337
parent 2344 63b3da03ce46
child 2353 31170b0850fa
--- a/QTfrontend/newnetclient.cpp	Wed Sep 02 08:53:46 2009 +0000
+++ b/QTfrontend/newnetclient.cpp	Wed Sep 02 09:04:06 2009 +0000
@@ -88,8 +88,6 @@
 	}
 	
 	RawSendNet(QString("CREATE_ROOM%1%2").arg(delimeter).arg(room));
-	m_pGameCFGWidget->setEnabled(true);
-	m_pTeamSelWidget->setInteractivity(true);
 	isChief = true;
 }
 
@@ -101,11 +99,7 @@
 		return;
 	}
 	
-	loginStep++;
-
 	RawSendNet(QString("JOIN_ROOM%1%2").arg(delimeter).arg(room));
-	m_pGameCFGWidget->setEnabled(false);
-	m_pTeamSelWidget->setInteractivity(false);
 	isChief = false;
 }
 
@@ -448,7 +442,7 @@
 
 	if (lst[0] == "RUN_GAME") {
 		netClientState = 5;
-		RunGame();
+		emit AskForRunGame();
 		return;
 	}
 
@@ -558,6 +552,7 @@
 		m_pGameCFGWidget->setEnabled(b);
 		m_pTeamSelWidget->setInteractivity(b);
 		isChief = b;
+		emit roomMaster(isChief);
 
 		return;
 	}
@@ -565,11 +560,6 @@
 	qWarning() << "Net: Unknown message:" << lst;
 }
 
-void HWNewNet::RunGame()
-{
-	emit AskForRunGame();
-}
-
 void HWNewNet::onHedgehogsNumChanged(const HWTeam& team)
 {
 	if (isChief)