Removed debug code.
This commit is contained in:
parent
bd0641f12a
commit
e20d6a437a
@ -1933,13 +1933,14 @@ bool ServerLobby::handleAllVotes(PeerVote *winner)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Otherwise if we have all votes, randomly select the vote
|
||||||
|
// to use in the next race.
|
||||||
RandomGenerator r;
|
RandomGenerator r;
|
||||||
auto vote = m_peers_votes.begin();
|
auto vote = m_peers_votes.begin();
|
||||||
std::advance(vote, r.get(m_peers_votes.size()) );
|
std::advance(vote, r.get(m_peers_votes.size()) );
|
||||||
|
|
||||||
*winner = vote->second;
|
*winner = vote->second;
|
||||||
|
|
||||||
return false;
|
|
||||||
return m_peers_votes.size() == cur_players;
|
return m_peers_votes.size() == cur_players;
|
||||||
} // handleAllVotes
|
} // handleAllVotes
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user