1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +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) { for (const prop of this.props) {
result.props.push(prop.clone()); result.props.push(prop.clone());
} }
if (this.serialNumber) {
result.serialNumber = this.serialNumber; result.serialNumber = this.serialNumber;
if (this.delay) { }
if (typeof this.delay !== 'undefined') {
result.delay = this.delay; result.delay = this.delay;
} }
result.inPVS = this.inPVS; result.inPVS = this.inPVS;