fix client count
This commit is contained in:
parent
0f02d48e65
commit
33663ba093
|
@ -848,9 +848,12 @@ class GameLobby(Game):
|
|||
return []
|
||||
|
||||
def CclientDrawing(self, drawing):
|
||||
cclient = 0
|
||||
if drawing in self.mpdrawing_game:
|
||||
return len(self.mpdrawing_game[drawing].RgclientConnected())
|
||||
return 0
|
||||
cclient += len(self.mpdrawing_game[drawing].RgclientConnected())
|
||||
for gameWorld in self.RggameWorld(drawing):
|
||||
cclient += len(gameWorld.RgclientConnected())
|
||||
return cclient
|
||||
|
||||
def StNameProject(self, project):
|
||||
return project.stName + " [" + str(sum([self.CclientDrawing(drawing) for drawing in project.rgdrawing])) + "]"
|
||||
|
|
Loading…
Reference in a new issue