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:
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) {
|
||||
result.props.push(prop.clone());
|
||||
}
|
||||
result.serialNumber = this.serialNumber;
|
||||
if (this.delay) {
|
||||
if (this.serialNumber) {
|
||||
result.serialNumber = this.serialNumber;
|
||||
}
|
||||
if (typeof this.delay !== 'undefined') {
|
||||
result.delay = this.delay;
|
||||
}
|
||||
result.inPVS = this.inPVS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue