SquadJS
SquadJS copied to clipboard
Bug fix for 'PLAYER_DISCONNECTED' race condition
Fixes the bug described in #289.
Implements this by saving the list of oldPlayerInfo
that updatePlayerList()
creates and then the PLAYER_DISCONNECT
event tries to find the player by steam id in the saved oldPlayerInfo
list if it couldn't find it in this.players
.
Started testing on ASG servers.
Needs a rewrite for the new major squad js version
updated, needs further testing still.