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