fix: bozo issu
This commit is contained in:
parent
d1acb443bd
commit
bc7d87704b
@ -237,8 +237,6 @@ export default class PongOnlineView extends AbstractAuthenticatedView
|
|||||||
|
|
||||||
destroyGameboard()
|
destroyGameboard()
|
||||||
{
|
{
|
||||||
if (!this.canva)
|
|
||||||
return
|
|
||||||
this.app.removeChild(this.canva);
|
this.app.removeChild(this.canva);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,6 +86,8 @@ class PongGame(AGame):
|
|||||||
self.broadcast("finish", {'winner_id': winner.user.pk})
|
self.broadcast("finish", {'winner_id': winner.user.pk})
|
||||||
self.model.finish(winner.user)
|
self.model.finish(winner.user)
|
||||||
self.stopped = True
|
self.stopped = True
|
||||||
|
self.players = []
|
||||||
|
self.spectators = []
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user