Count only number of human players for number of votes to kick.
This commit is contained in:
1 parent
9d830eaba4
commit
c90b46e5f6
1 file changed
+2
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user