QTfrontend/teamselect.cpp
changeset 147 52a3c431db8a
parent 140 50ccde437ea1
child 150 d9e8a336195c
equal deleted inserted replaced
146:458f4f58c1b6 147:52a3c431db8a
    32   if(!willBePlaying) {
    32   if(!willBePlaying) {
    33     // playing team => dont playing
    33     // playing team => dont playing
    34     curDontPlayingTeams.push_back(*itPlay);
    34     curDontPlayingTeams.push_back(*itPlay);
    35     curPlayingTeams.erase(itPlay);
    35     curPlayingTeams.erase(itPlay);
    36   } else {
    36   } else {
       
    37     // return if max playing teams reached
       
    38     if(curPlayingTeams.size()>2) return;
    37     // dont playing team => playing
    39     // dont playing team => playing
    38     curPlayingTeams.push_back(*itDontPlay);
    40     curPlayingTeams.push_back(*itDontPlay);
    39     curDontPlayingTeams.erase(itDontPlay);
    41     curDontPlayingTeams.erase(itDontPlay);
    40   }
    42   }
    41 
    43