Skip to content

Commit 0dce661

Browse files
committed
Clean up Leave-PVS
1 parent 759bbff commit 0dce661

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

entities.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ func (p *Parser) handlePacketEntities(pe *msg.CSVCMsg_PacketEntities) {
2727

2828
if r.ReadBit() {
2929
// Leave PVS
30+
delete(p.entities, currentEntity)
3031

31-
// FIXME: Might have to destroy the entities contents first, not sure yet
32-
// Could do weird stuff with event handlers otherwise
33-
p.entities[currentEntity] = nil
34-
35-
// TODO: Force Delete if this is true??
32+
// 'Force Delete' flag, not exactly sure what it's supposed to do
3633
r.ReadBit()
3734
} else {
3835
if r.ReadBit() {

0 commit comments

Comments
 (0)