Adding state history for lag compensation

This commit is contained in:
Jeremiah Billmann
2013-07-06 12:20:54 -04:00
parent 67caaf00ec
commit dd03d7a8d7
3 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -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;