fixed problem when user disconnected

This commit is contained in:
Jeena Paradies 2012-07-14 00:04:41 +02:00
parent e751210345
commit 7d0df79ac8
8 changed files with 73 additions and 33 deletions

View file

@ -21,6 +21,10 @@ define(["Chuck/Processors/ServerProcessor"], function(ServerProcessor) {
this.serverProcessor.createPlayerWithId(user.id);
}
ServerGame.prototype.userIdLeft = function(userId) {
this.serverProcessor.userIdLeft(userId);
};
ServerGame.prototype.updateClientsWorld = function(update_world) {
this.channel.sendCommandToAllUsers('gameCommand', {worldUpdate: update_world});
}