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

update test data

The decoding should be a bit more reliable now so this snapshot should be "more correct"
This commit is contained in:
Robin Appelman 2017-09-16 18:30:11 +02:00
commit d8f01428c5
4 changed files with 6 additions and 10 deletions

View file

@ -97,6 +97,8 @@ function writeEnterPVS(entity: PacketEntity, stream: BitStream, state: ParserSta
const propsToEncode = instanceBaseLine ? entity.diffFromBaseLine(instanceBaseLine) : entity.props;
// console.log(propsToEncode.map(prop => `${prop.definition.name}: ${prop.value}`));
const allProps = sendTable.flattenedProps;
propsToEncode.sort((a, b) => allProps.findIndex(propDef => propDef.fullName === a.definition.fullName) -
allProps.findIndex(propDef => propDef.fullName === b.definition.fullName));