Skip to content

Commit

Permalink
stop admin from counting as player
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy authored Jan 22, 2024
1 parent 537b659 commit ab8b965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ io.on("connection", (socket) => {
console.log("Connected", socket.data.group);


playersPerGroup[socket.data.group] += 1;
if (unique_name !== "admin") playersPerGroup[socket.data.group] += 1;
console.log("players per group", playersPerGroup);

if (gameStatus == 'waiting') {
Expand Down

0 comments on commit ab8b965

Please sign in to comment.