Skip to content

Commit

Permalink
fix: set player connected flag to false when controller is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
akiver committed Jan 14, 2024
1 parent 935fd38 commit 314ae0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/demoinfocs/datatables.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ func (p *parser) bindNewPlayerControllerS2(controllerEntity st.Entity) {
})

controllerEntity.OnDestroy(func() {
pl.IsConnected = false
delete(p.gameState.playersByEntityID, controllerEntity.ID())
})
}
Expand Down

0 comments on commit 314ae0a

Please sign in to comment.