From a852bccae69556fb147134cd1efc93f7e51d389a Mon Sep 17 00:00:00 2001 From: Logsol Date: Sat, 5 Jan 2013 21:32:19 +0100 Subject: [PATCH] added user/left notificationcenter trigger, because bodies on the server were not destroyed when user disconnected --- app/Game/Server/Channel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Game/Server/Channel.js b/app/Game/Server/Channel.js index b0b93ea..a82d875 100755 --- a/app/Game/Server/Channel.js +++ b/app/Game/Server/Channel.js @@ -55,6 +55,7 @@ Channel.prototype.onReleaseUser = function (userId) { var user = this.users[userId]; this.sendControlCommandToAllUsersExcept("userLeft", user.id, user); + NotificationCenter.trigger('user/left', user); delete this.users[user.id]; }