修正排位座次号设置错误的bug
This commit is contained in:
parent
b9eb9a7e43
commit
c300d8cdbb
@ -43,10 +43,9 @@ export class OnJoinCommand extends Command<CardGameState, {
|
||||
if (seat != undefined) {
|
||||
seat = +seat
|
||||
if (seatSet.has(seat)) {
|
||||
seatSet.delete(seat)
|
||||
idx = seatSet.values().next().value
|
||||
} else {
|
||||
idx = seat;
|
||||
} else {
|
||||
idx = seatSet.values().next().value
|
||||
}
|
||||
} else {
|
||||
idx = seatSet.values().next().value
|
||||
|
Loading…
x
Reference in New Issue
Block a user