We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b48fe2 commit a86259aCopy full SHA for a86259a
entities.go
@@ -31,14 +31,12 @@ func (p *Parser) handlePacketEntities(pe *msg.CSVCMsg_PacketEntities) {
31
32
// 'Force Delete' flag, not exactly sure what it's supposed to do
33
r.ReadBit()
34
+ } else if r.ReadBit() {
35
+ // Enter PVS
36
+ p.gameState.entities[currentEntity] = p.stParser.ReadEnterPVS(r, currentEntity)
37
} else {
- if r.ReadBit() {
- // Enter PVS
- p.gameState.entities[currentEntity] = p.stParser.ReadEnterPVS(r, currentEntity)
38
- } else {
39
- // Delta Update
40
- p.gameState.entities[currentEntity].ApplyUpdate(r)
41
- }
+ // Delta Update
+ p.gameState.entities[currentEntity].ApplyUpdate(r)
42
}
43
44
r.Pool()
0 commit comments