eslint
This commit is contained in:
parent
e93790445f
commit
fc9e10f286
1 changed files with 1 additions and 2 deletions
|
|
@ -190,13 +190,12 @@ class StateI {
|
|||
player.currentGame = null;
|
||||
player.socket.emit('gameEnd', winner);
|
||||
}
|
||||
chat_text += (this.fastify.db.getUser(game.userLeft)?.name ?? game.userLeft) +' and ';
|
||||
chat_text += (this.fastify.db.getUser(game.userLeft)?.name ?? game.userLeft) + ' and ';
|
||||
if ((player = this.users.get(game.userRight)) !== undefined) {
|
||||
player.currentGame = null;
|
||||
player.socket.emit('gameEnd', winner);
|
||||
}
|
||||
chat_text += (this.fastify.db.getUser(game.userRight)?.name ?? game.userRight);
|
||||
this.fastify.log.info('chat_text:'+ chat_text);
|
||||
const rOutcome = game.checkWinner();
|
||||
let outcome: PongGameOutcome = 'other';
|
||||
if (rOutcome === 'left') { outcome = 'winL'; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue