QTfrontend/teamselect.cpp
changeset 482 61c617f1bec7
parent 387 66345e38826d
child 486 7ea71cd3acd5
equal deleted inserted replaced
481:44ceded179a4 482:61c617f1bec7
   126     curPlayingTeams.erase(itPlay);
   126     curPlayingTeams.erase(itPlay);
   127   } else {
   127   } else {
   128     // return if max playing teams reached
   128     // return if max playing teams reached
   129     if(framePlaying->isFullTeams()) return;
   129     if(framePlaying->isFullTeams()) return;
   130     // dont playing team => playing
   130     // dont playing team => playing
       
   131     team=*itDontPlay; // for net team info saving in framePlaying (we have only name with netID from network)
   131     itDontPlay->teamColor=framePlaying->getNextColor();
   132     itDontPlay->teamColor=framePlaying->getNextColor();
   132     curPlayingTeams.push_back(*itDontPlay);
   133     curPlayingTeams.push_back(*itDontPlay);
   133     if(!m_acceptOuter) emit teamWillPlay(*itDontPlay);
   134     if(!m_acceptOuter) emit teamWillPlay(*itDontPlay);
   134     curDontPlayingTeams.erase(itDontPlay);
   135     curDontPlayingTeams.erase(itDontPlay);
   135   }
   136   }