Skip to content

Commit

Permalink
fix chat timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Mar 29, 2024
1 parent 5e3e9d5 commit 5a5d220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Demo/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private function handleData(array $data): ParsedDemo {
foreach ($data['chat'] as $message) {
if (isset($message['from'])) {
$chat[] = new ChatMessage($message['from'],
(int) floor(($message['tick'] - $data['startTick']) * $intervalPerTick), $message['text']);
(int) floor($message['tick'] * $intervalPerTick), $message['text']);
}
}

Expand Down

0 comments on commit 5a5d220

Please sign in to comment.