missing delete from players array

This commit is contained in:
logsol 2012-07-16 00:57:48 +02:00
parent a54dfc05f8
commit 16d2c4e503

View file

@ -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() {