mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
changed this to self because of #65 hope this helps
This commit is contained in:
parent
e74c7b8219
commit
2343049227
1 changed files with 2 additions and 2 deletions
|
|
@ -101,11 +101,11 @@
|
|||
if(!this.gameController.level || !this.gameController.level.isLoaded) {
|
||||
var token = Nc.on(Nc.ns.core.game.events.level.loaded, function() {
|
||||
self.sendJoinSuccess(options);
|
||||
this.users[options.id].sendControlCommand("beginRound", clientGameControllerOptions);
|
||||
self.users[options.id].sendControlCommand("beginRound", clientGameControllerOptions);
|
||||
Nc.off(token);
|
||||
});
|
||||
} else {
|
||||
self.sendJoinSuccess(options);
|
||||
this.sendJoinSuccess(options);
|
||||
this.users[options.id].sendControlCommand("beginRound", clientGameControllerOptions);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue