equal
deleted
inserted
replaced
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 |