QTfrontend/teamselect.cpp
changeset 150 d9e8a336195c
parent 147 52a3c431db8a
child 151 9eb5a4cee35e
equal deleted inserted replaced
149:aae256899c49 150:d9e8a336195c
    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
    37     // return if max playing teams reached
    38     if(curPlayingTeams.size()>2) return;
    38     if(framePlaying->isFullTeams()) return;
    39     // dont playing team => playing
    39     // dont playing team => playing
    40     curPlayingTeams.push_back(*itDontPlay);
    40     curPlayingTeams.push_back(*itDontPlay);
    41     curDontPlayingTeams.erase(itDontPlay);
    41     curDontPlayingTeams.erase(itDontPlay);
    42   }
    42   }
    43 
    43