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:
parent
5fcbbe540e
commit
255602d1e2
6 changed files with 33 additions and 43 deletions
|
|
@ -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 = [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue