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

save viewangles

This commit is contained in:
Robin Appelman 2017-02-21 19:44:30 +01:00
commit fe115329a7
7 changed files with 38 additions and 10 deletions

View file

@ -38,10 +38,10 @@ function readEnterPVS(stream: BitStream, entityId: number, match: Match): Packet
staticBaseLine.index = 0;
applyEntityUpdate(entity, sendTable, staticBaseLine);
match.baseLineCache[serverClass.id] = entity.clone();
if (staticBaseLine.bitsLeft > 7) {
// if (staticBaseLine.bitsLeft > 7) {
// console.log(staticBaseLine.length, staticBaseLine.index);
throw new Error('Unexpected data left at the end of staticBaseline, ' + staticBaseLine.bitsLeft + ' bits left');
}
// throw new Error('Unexpected data left at the end of staticBaseline, ' + staticBaseLine.bitsLeft + ' bits left');
// }
}
entity.serialNumber = serial;
return entity;