修正房间人数是否已满判断错误的bug

This commit is contained in:
zhl 2021-03-16 14:23:21 +08:00
parent 7a3ecf7c70
commit 3980e35d13

View File

@ -20,7 +20,7 @@ export class OnJoinCommand extends Command<CardGameState, {
}> { }> {
async execute({ client, accountId, seat, score } = this.payload) { async execute({ client, accountId, seat, score } = this.payload) {
const count = this.room.clientCount const count = this.room.clientCount
if (count >= this.room.maxClients) { if (count > this.room.maxClients) {
return return
} }
// begin of set seat and team // begin of set seat and team