fix: all player have voted = all player - 2

This commit is contained in:
Fangh 2024-02-01 23:07:43 +01:00
parent 11b016370d
commit f31f41ac8b

View File

@ -184,7 +184,8 @@ private void OnQuestionDataUpdate(object sender, ValueChangedEventArgs _question
UpdatePropositionVoters(proposition2, currentQuestion.propositions[1]);
}
if (RoomManager.Instance.myRoom.NumbersOfVotersForQuestion(currentQuestion) >= currentPlayers.Count)
//every players BUT the one who have created the propositions
if (RoomManager.Instance.myRoom.NumbersOfVotersForQuestion(currentQuestion) >= currentPlayers.Count - 2)
{
allPlayersHaveVotedForCurrentQuestion = true;
}