From f31f41ac8bf27b2355ecb5318a43db3400e939dc Mon Sep 17 00:00:00 2001 From: Fangh Date: Thu, 1 Feb 2024 23:07:43 +0100 Subject: [PATCH] fix: all player have voted = all player - 2 --- Assets/Scripts/VotingPage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/VotingPage.cs b/Assets/Scripts/VotingPage.cs index 86bdfc8..b77157b 100644 --- a/Assets/Scripts/VotingPage.cs +++ b/Assets/Scripts/VotingPage.cs @@ -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; }