Fixed crash when player leaves before game start...
This commit is contained in:
parent
bddd51dd5d
commit
3fee93abe8
1 changed files with 1 additions and 3 deletions
|
|
@ -354,12 +354,10 @@ io.on('connection', (socket) => {
|
|||
/*console.log(game.player_turns);
|
||||
game.player_turns = game.player_turns.filter(e => e.id != socket.id);
|
||||
console.log(game.player_turns);*/
|
||||
}
|
||||
|
||||
|
||||
if (socket.id == game.current_player.id) {
|
||||
play_next_turn(game);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue