fix: start match only when player list is full (#47)
This commit is contained in:
1 parent
14516a878f
commit
6d6df751dd
1 file changed
+1
-1
@@ -58,7 +58,7 @@ class AutobeerpongServer:
|
||||
)
|
||||
)
|
||||
|
||||
if all([player.ready for player in players]):
|
||||
if self.context.lobby.is_players_full() and all([player.ready for player in players]):
|
||||
# all players are ready, advance server state to match
|
||||
self.context.state = ServerState.MATCH
|
||||
# send match start message to all connected clients
|
||||
|
||||
Reference in new issue
Block a user