Compare commits
2 Commits
d36dad28bd
...
8b48dc9462
Author | SHA1 | Date | |
---|---|---|---|
|
8b48dc9462 | ||
|
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,16 +133,21 @@ private void UpdateVoters()
|
||||
if (currentQuestion.propositions[0] != null)
|
||||
{
|
||||
List<Player> playersThatHasVotedForFirstProposition = new List<Player>();
|
||||
if (currentQuestion.propositions[0].voters != null)
|
||||
{
|
||||
foreach (string playerId in currentQuestion.propositions[0].voters)
|
||||
{
|
||||
playersThatHasVotedForFirstProposition.Add(currentPlayers[playerId]);
|
||||
}
|
||||
proposition1.UpdateVoters(playersThatHasVotedForFirstProposition);
|
||||
}
|
||||
}
|
||||
|
||||
if (currentQuestion.propositions[1] != null)
|
||||
{
|
||||
List<Player> playersThatHasVotedForSecondProposition = new List<Player>();
|
||||
if (currentQuestion.propositions[0].voters != null)
|
||||
{
|
||||
foreach (string playerId in currentQuestion.propositions[1].voters)
|
||||
{
|
||||
playersThatHasVotedForSecondProposition.Add(currentPlayers[playerId]);
|
||||
@ -151,3 +156,4 @@ private void UpdateVoters()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user