SyntaxSquad/DADProject#16 fix: Surrender if leave
This commit is contained in:
@@ -248,7 +248,8 @@ export default (io, socket) => {
|
||||
}
|
||||
|
||||
socket.join(`game_${gameId}`);
|
||||
|
||||
socket.activeGameId = gameId;
|
||||
|
||||
if (game.players[myId]) {
|
||||
game.players[myId].token = socket.handshake.auth.token;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user