Skip to content

Commit

Permalink
Send current time
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz.czaplinski committed Jun 27, 2019
1 parent f8abc41 commit c5a8a1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/app/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class WebSocketProtocol {
},
headshot: e.headshot,
weapon: e.weapon,
time: demoFile.currentTime,
}))
});

Expand All @@ -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,
}))
}
});
Expand Down

0 comments on commit c5a8a1b

Please sign in to comment.