1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

filter by backend

This commit is contained in:
Robin Appelman 2017-08-08 00:29:24 +02:00
commit df83a46e20
17 changed files with 265 additions and 38 deletions

View file

@ -61,7 +61,7 @@ class Parser {
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'] - $data['startTick']) * $intervalPerTick), $message['text']);
}
}
@ -80,7 +80,7 @@ class Parser {
$player['userId'],
$this->convertSteamIdToCommunityId($player['steamId']),
$player['team'],
$this->getClassName((int)$class)
$this->getClassName((int) $class)
);
}
}