remove players once replay is done

This commit is contained in:
Alberto Xamin 2023-01-25 11:21:19 +01:00
parent 323b6b773c
commit 1146df0571
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -179,9 +179,9 @@ class Game:
self.notify_room()
eventlet.sleep(max(self.replay_speed, 0.001))
eventlet.sleep(6)
self.players = []
if self.is_replay:
self.reset()
def notify_room(self, sid=None):
if any((p.character is None for p in self.players)) or sid: