mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-27 16:10:34 +08:00
Code cleanup
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user