QTfrontend/newnetclient.cpp
changeset 1338 758c39a3dcfe
parent 1336 4e88eccbe7f6
child 1339 8a11157c6c81
equal deleted inserted replaced
1337:b652c002633b 1338:758c39a3dcfe
   253 		tmp.removeFirst();
   253 		tmp.removeFirst();
   254 		emit AddNetTeam(tmp);
   254 		emit AddNetTeam(tmp);
   255 		return;
   255 		return;
   256 	}
   256 	}
   257 
   257 
   258   if (lst[0] == "REMOVE_TEAM") {
   258 	if (lst[0] == "REMOVE_TEAM") {
   259     if(lst.size() != 2)
   259 		if(lst.size() != 2)
   260     {
   260 		{
   261       qWarning("Net: Bad REMOVETEAM message");
   261 			qWarning("Net: Bad REMOVETEAM message");
   262       return;
   262 			return;
   263     }
   263 		}
   264     m_pTeamSelWidget->removeNetTeam(HWTeam(lst[1]));
   264 		m_pTeamSelWidget->removeNetTeam(HWTeam(lst[1]));
   265     return;
   265 		return;
   266   }
   266 	}
   267 
   267 
   268 	if(lst[0]=="JOINED") {
   268 	if(lst[0]=="JOINED") {
   269 		if(lst.size() < 2)
   269 		if(lst.size() < 2)
   270 		{
   270 		{
   271 			qWarning("Net: Bad JOINED message");
   271 			qWarning("Net: Bad JOINED message");
   294 		}
   294 		}
   295 		emit nickRemoved(lst[1]);
   295 		emit nickRemoved(lst[1]);
   296 		return;
   296 		return;
   297 	}
   297 	}
   298 
   298 
   299 	if (lst[0] == "RUNGAME") {
   299 	if (lst[0] == "RUN_GAME") {
   300 		RunGame();
   300 		RunGame();
   301 		return;
   301 		return;
   302 	}
   302 	}
   303 
   303 
   304 	if (lst[0] == "TEAM_ACCEPTED") {
   304 	if (lst[0] == "TEAM_ACCEPTED") {