Progress: Interpolation

This commit is contained in:
Jeremiah Billmann
2013-06-21 22:01:15 -04:00
parent 71d9eb8e75
commit 0a4f6930aa
3 changed files with 21 additions and 10 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ GarageServer.prototype.onPlayerInput = function (socket, input, options) {
};
GarageServer.prototype.onPing = function (socket, data, options) {
socket.emit('ping', data);
socket.emit('ping', { 'pingTime': data, 'serverTime': new Date().getTime() });
if (options.onPing) {
options.onPing(socket, data);
}