mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-09 11:40:29 +08:00
Adding state history for lag compensation
This commit is contained in:
@@ -45,7 +45,7 @@ PlayerController.prototype.addInput = function (id, input, sequence, time) {
|
||||
});
|
||||
};
|
||||
|
||||
PlayerController.prototype.updateState = function (id, state) {
|
||||
PlayerController.prototype.setState = function (id, state) {
|
||||
this.entities.some(function (player) {
|
||||
if (player.client.id === id) {
|
||||
player.state = state;
|
||||
|
||||
Reference in New Issue
Block a user