修正房间人数是否已满判断错误的bug
This commit is contained in:
parent
7a3ecf7c70
commit
3980e35d13
@ -20,7 +20,7 @@ export class OnJoinCommand extends Command<CardGameState, {
|
||||
}> {
|
||||
async execute({ client, accountId, seat, score } = this.payload) {
|
||||
const count = this.room.clientCount
|
||||
if (count >= this.room.maxClients) {
|
||||
if (count > this.room.maxClients) {
|
||||
return
|
||||
}
|
||||
// begin of set seat and team
|
||||
|
Loading…
x
Reference in New Issue
Block a user