mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-15 12:04:56 +08:00
Completed: Client Side Prediction
This commit is contained in:
@@ -24,8 +24,8 @@ GarageServerGame.prototype.updatePhysics = function (options) {
|
||||
if (this.options.onUpdatePhysics) {
|
||||
this.players[i].state = this.options.onUpdatePhysics(this.players[i].state, this.players[i].inputs);
|
||||
}
|
||||
this.players[i].inputs = [];
|
||||
this.players[i].sequence += this.players[i].inputs.length;
|
||||
this.players[i].inputs = [];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user