Count only number of human players for number of votes to kick.

This commit is contained in:
lotodore
2008-12-08 22:17:14 +00:00
parent 9d830eaba4
commit c90b46e5f6
+2 -1
View File
@@ -317,7 +317,8 @@ ServerGameThread::InternalAskVoteKick(SessionWrapper byWhom, unsigned playerIdWh
{
if (IsRunning() && byWhom.playerData)
{
size_t numPlayers = GetCurNumberOfPlayers();
// Retrieve only the number of human players.
size_t numPlayers = GetSessionManager().GetPlayerIdList().size();
if (numPlayers > 2)
{
// Lock the vote kick data.