Player names used in score screen go missing if client disconnects
AKMDM opened this issue · 1 comments
AKMDM commented
If a player disconnects usually before the score screen, their name will not be properly referenced and will print "Player [ID]" instead. This especially happens when the murderer, or the innocent who killed the murderer, leave before their names are printed onscreen.
To solve this, every player's name should be stored in a variable beforehand and updated in case they change their name in the middle of a round.
prepper25 commented
I guess that issue, happen when is trigged(deathplayer)the fadeout and start showing the score and exist a delay in that time, where is not saved the name of the player and show only his playerid.
One solution is save immediately his name when the murd is death or game over.