1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-03 16:44:12 +02:00

better packet entity clone

This commit is contained in:
Robin Appelman 2018-03-09 00:20:12 +01:00
commit 9fe63151ce

View file

@ -58,8 +58,10 @@ export class PacketEntity {
for (const prop of this.props) {
result.props.push(prop.clone());
}
if (this.serialNumber) {
result.serialNumber = this.serialNumber;
if (this.delay) {
}
if (typeof this.delay !== 'undefined') {
result.delay = this.delay;
}
result.inPVS = this.inPVS;