Progress: Interpolation Correction

This commit is contained in:
Jeremiah Billmann
2013-06-30 16:05:26 -04:00
parent bbe9adf06b
commit a052a414c3
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ GarageServerGame.prototype.updateState = function (options) {
GarageServerGame.prototype.updatePlayers = function (options) {
var currentTime = new Date().getTime() - this.startTime,
state = { time: currentTime, delta: this.physicsInterval, playerStates: [] };
state = { time: currentTime, physicsDelta: this.physicsInterval, stateDelta: this.stateInterval, playerStates: [] };
this.players.forEach(function (player) {
state.playerStates.push({ id: player.client.id, state: player.state, seq: player.sequence });