fix max players

This commit is contained in:
Alberto Xamin 2020-11-27 23:05:09 +01:00
parent f4bc8d1142
commit 8b33fc0f45
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -19,7 +19,7 @@ games: List[Game] = []
online_players = 0 online_players = 0
def advertise_lobbies(): def advertise_lobbies():
sio.emit('lobbies', room='lobby', data=[{'name': g.name, 'players': len(g.players), 'locked': g.password != ''} for g in games if not g.started and len(g.players) < 7]) sio.emit('lobbies', room='lobby', data=[{'name': g.name, 'players': len(g.players), 'locked': g.password != ''} for g in games if not g.started and len(g.players) < 10])
@sio.event @sio.event
def connect(sid, environ): def connect(sid, environ):