Code cleanup

This commit is contained in:
Jeremiah Billmann
2013-07-12 11:11:30 -05:00
parent 2ca0208fb0
commit 906bf3719a
4 changed files with 32 additions and 22 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ Game.prototype.start = function () {
Game.prototype.update = function () {
var players = this.server.getPlayers(),
self = this;
players.forEach(function (player) {
var newState = gamePhysics.getNewState(player.state, player.inputs, self.physicsDelta);
self.server.updatePlayerState(player.id, newState);