Skip to content

Commit

Permalink
Make the threshold be the floor of 3/4 of current players, rather tha…
Browse files Browse the repository at this point in the history
…n total - 2
  • Loading branch information
Your Name committed Nov 22, 2024
1 parent 695aed7 commit 40f198d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/multiplayer/ServerTossupRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default class ServerTossupRoom extends TossupRoom {
}
});

const threshold = Math.max(activePlayers - 2, 2);
const threshold = Math.max(Math.floor(activePlayers * 3 / 4), 2);
const votekick = new Votekick(targetId, threshold, []);
votekick.vote(userId);
if (votekick.check()) {
Expand Down

0 comments on commit 40f198d

Please sign in to comment.