QTfrontend/newnetclient.cpp
changeset 362 b28e0dd48269
parent 356 ca3a5dfcae75
child 372 4bac77f8cd38
--- a/QTfrontend/newnetclient.cpp	Tue Jan 23 22:48:08 2007 +0000
+++ b/QTfrontend/newnetclient.cpp	Wed Jan 24 20:00:03 2007 +0000
@@ -175,6 +175,7 @@
 
   if(lst[0]=="SLAVE") {
     m_pGameCFGWidget->setEnabled(false);
+    m_pTeamSelWidget->setNonInteractive();
     return;
   }
 
@@ -237,8 +238,7 @@
   	}
   	if (lst[1] == "HHNUM") {
 	  HWTeam tmptm(lst[2], lst[3].toUInt());
-	  QMap<unsigned int, QString>::iterator it=m_networkToLocalteams.find(lst[3].toUInt());
-	  if(it!=m_networkToLocalteams.end()) {
+	  if(m_networkToLocalteams.find(lst[3].toUInt())!=m_networkToLocalteams.end()) {
 	    tmptm=HWTeam(lst[2]); // local team should be changed
 	  }
 	  tmptm.numHedgehogs=lst[4].toUInt();