1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

cache entity baseline

This commit is contained in:
Robin Appelman 2017-02-14 22:53:27 +01:00
commit 255602d1e2
6 changed files with 33 additions and 43 deletions

View file

@ -44,7 +44,7 @@ function handleEntity(entity: PacketEntity, match: Match) {
match.players.push(player);
}
for (const prop of entity.updatedProps) {
for (const prop of entity.props) {
const propName = prop.definition.ownerTableName + '.' + prop.definition.name;
// console.log(propName, prop.value);
switch (propName) {
@ -75,5 +75,4 @@ function handleEntity(entity: PacketEntity, match: Match) {
}
}
entity.updatedProps = [];
}