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:
parent
261e72ea15
commit
9fe63151ce
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue