timadye / werewolf

Oxford Werewolf game
https://oxford-werewolf.eu.meteorapp.com
0 stars 1 forks source link

Don't allow the dead to vote #18

Closed timadye closed 4 years ago

timadye commented 4 years ago

It looks like people who were killed today (or last night?) are still allowed/made to vote.

timadye commented 4 years ago

The bug occurs when a guillotine call (or vote) is outstanding from a player who is then killed by the vigilante. The client still counts the dead's call so it only requires one more call to go to the vote. But the server only sees one call, so ignores the vote - but a server bug gives an exception printing the message.

timadye commented 4 years ago

Fix client logic so only votes from living players count. Fix exception in server and improve log message.