Added time to input

This commit is contained in:
Jeremiah Billmann
2013-06-28 23:14:45 -04:00
parent 96364faf8a
commit a2b3ecc4da
+1 -1
View File
@@ -226,7 +226,7 @@ window.GarageServerIO = (function (window, socketio) {
if (_options.clientSidePrediction && _options.onUpdatePlayerPhysics) {
_stateController.state = _options.onUpdatePlayerPhysics(_stateController.state, [{ input: clientInput }]);
}
_socket.emit('input', { input: clientInput, seq: _inputController.sequenceNumber });
_socket.emit('input', { input: clientInput, seq: _inputController.sequenceNumber, time: _stateController.time });
},
updateState = function (data) {