From c5a8a1b0a177e9e83cc9e15ec7ae0fe79080b96f Mon Sep 17 00:00:00 2001 From: "lukasz.czaplinski" Date: Thu, 27 Jun 2019 14:30:21 +0200 Subject: [PATCH] Send current time --- frontend/app/api.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/api.ts b/frontend/app/api.ts index 4db252b..75ad03b 100644 --- a/frontend/app/api.ts +++ b/frontend/app/api.ts @@ -52,6 +52,7 @@ export class WebSocketProtocol { }, headshot: e.headshot, weapon: e.weapon, + time: demoFile.currentTime, })) }); @@ -60,7 +61,8 @@ export class WebSocketProtocol { if (player) { this.socket.emit("player_footstep", JSON.stringify({ id: e.userid, - position: player.position + position: player.position, + time: demoFile.currentTime, })) } });