Added playerId to callbacks

This commit is contained in:
Jeremiah Billmann
2013-07-03 17:27:54 -04:00
parent b1e4e7a52e
commit 0204d254e6
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ GarageServerGame.prototype.updatePhysics = function (options) {
this.players.forEach(function (player) {
if (player.inputs.length > 0) {
if (options.onUpdatePlayerPhysics) {
player.state = options.onUpdatePlayerPhysics(player.state, player.inputs, self.physicsDelta);
player.state = options.onUpdatePlayerPhysics(player.client.id, player.state, player.inputs, self.physicsDelta);
}
player.sequence += player.inputs.length;
player.inputs = [];