QTfrontend/newnetclient.cpp
changeset 1320 bffc7262e25e
parent 1319 fedaae857a50
child 1321 d7dc4e86201e
equal deleted inserted replaced
1319:fedaae857a50 1320:bffc7262e25e
   298   if (lst[0] == "RUNGAME") {
   298   if (lst[0] == "RUNGAME") {
   299     RunGame();
   299     RunGame();
   300     return;
   300     return;
   301   }
   301   }
   302 
   302 
   303   if (lst[0] == "CONFIGURED") {
       
   304     QStringList tmp = lst;
       
   305     tmp.removeFirst();
       
   306     if(tmp.size() < 6)
       
   307     {
       
   308       qWarning("Net: Bad CONFIGURED message");
       
   309       return;
       
   310     }
       
   311     emit seedChanged(tmp[0]);
       
   312     emit mapChanged(tmp[1]);
       
   313     emit themeChanged(tmp[2]);
       
   314     emit initHealthChanged(tmp[3].toUInt());
       
   315     emit turnTimeChanged(tmp[4].toUInt());
       
   316     emit fortsModeChanged(tmp[5].toInt() != 0);
       
   317     return;
       
   318   }
       
   319 
   303 
   320   if(lst[0]=="TEAM_ACCEPTED") {
   304   if(lst[0]=="TEAM_ACCEPTED") {
   321     if(lst.size() < 3)
   305     if(lst.size() < 3)
   322     {
   306     {
   323       qWarning("Net: Bad TEAM_ACCEPTED message");
   307       qWarning("Net: Bad TEAM_ACCEPTED message");