-
Hi again! My issue is that, for some special votes, if a player raises a hand, this hand is not committed for other users. This happens only if there is no nominee, and so no red clock on the screen (in this case, I coded such as the blue clock move instead of the red one). Since this doesn't prevent the player to raise a hand for their part, I think that the issue is only for the commit. Is there some checking when you commit session/voteSync? I mean some checking which can cancel this commit and so I must adapt? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I assume you mean when a player raises their hand during a vote, right? This message is called "vote" and triggers a "handleVote" on the other players / storyteller clients: https://github.com/bra1n/townsquare/blob/develop/src/store/socket.js#L771 |
Beta Was this translation helpful? Give feedback.
They are being used to synchronize the clock hand. A "locked vote" is a vote that has been counted once the clock hand has moved past it.
handleLock
is the player-side of the code, whereaslockVote
is the ST side. (since the ST is the authority for running the vote)