mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
missing delete from players array
This commit is contained in:
parent
a54dfc05f8
commit
16d2c4e503
1 changed files with 1 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ define(requires, function(PhysicsEngine, Player, Box2D, Level, InputController,
|
|||
ServerProcessor.prototype.userIdLeft = function(id) {
|
||||
var player = this.players[id].player;
|
||||
player.destroy();
|
||||
delete this.players[id];
|
||||
}
|
||||
|
||||
ServerProcessor.prototype.updateWorld = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue