Commit 2de215e8 authored by nanahira's avatar nanahira

fix unready thing

parent cca0ec06
...@@ -339,12 +339,7 @@ export class WaitForPlayerProvider { ...@@ -339,12 +339,7 @@ export class WaitForPlayerProvider {
} }
private getReadyTimeoutTarget(room: Room) { private getReadyTimeoutTarget(room: Room) {
const players = room.playingPlayers.filter( const players = room.playingPlayers;
(player) =>
!player.disconnected &&
player.roomName === room.name &&
player.pos < NetPlayerType.OBSERVER,
);
const requiredPlayerCount = room.players.length; const requiredPlayerCount = room.players.length;
if (players.length < requiredPlayerCount) { if (players.length < requiredPlayerCount) {
return undefined; return undefined;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment