fix somes things
This commit is contained in:
parent
1a724ac03c
commit
0014a2a05d
@ -428,7 +428,7 @@ private void CheckPlayersPropositions()
|
||||
{
|
||||
if (string.IsNullOrEmpty(p.photoUrl))
|
||||
{
|
||||
Debug.Log($"player {p.owner} has a proposition without an URL");
|
||||
Debug.Log($"player {p.owner.name} has a proposition without an URL");
|
||||
allPlayersHasProposedTwoPictures = false;
|
||||
}
|
||||
}
|
||||
|
@ -133,21 +133,27 @@ private void UpdateVoters()
|
||||
if (currentQuestion.propositions[0] != null)
|
||||
{
|
||||
List<Player> playersThatHasVotedForFirstProposition = new List<Player>();
|
||||
foreach (string playerId in currentQuestion.propositions[0].voters)
|
||||
if (currentQuestion.propositions[0].voters != null)
|
||||
{
|
||||
playersThatHasVotedForFirstProposition.Add(currentPlayers[playerId]);
|
||||
foreach (string playerId in currentQuestion.propositions[0].voters)
|
||||
{
|
||||
playersThatHasVotedForFirstProposition.Add(currentPlayers[playerId]);
|
||||
}
|
||||
proposition1.UpdateVoters(playersThatHasVotedForFirstProposition);
|
||||
}
|
||||
proposition1.UpdateVoters(playersThatHasVotedForFirstProposition);
|
||||
}
|
||||
|
||||
if (currentQuestion.propositions[1] != null)
|
||||
{
|
||||
List<Player> playersThatHasVotedForSecondProposition = new List<Player>();
|
||||
foreach (string playerId in currentQuestion.propositions[1].voters)
|
||||
if (currentQuestion.propositions[0].voters != null)
|
||||
{
|
||||
playersThatHasVotedForSecondProposition.Add(currentPlayers[playerId]);
|
||||
foreach (string playerId in currentQuestion.propositions[1].voters)
|
||||
{
|
||||
playersThatHasVotedForSecondProposition.Add(currentPlayers[playerId]);
|
||||
}
|
||||
proposition2.UpdateVoters(playersThatHasVotedForSecondProposition);
|
||||
}
|
||||
proposition2.UpdateVoters(playersThatHasVotedForSecondProposition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user