Init playerinfo[i].node to 255 so if playerinfo packet gets lost, server join screen doesn't display empty player names

This commit is contained in:
indev committed 2025-12-11 21:37:31 +03:00
1 parent 6ad344f65d
commit 1ccd3e37bc
1 file changed
+6
+6
View File
@@ -3475,6 +3475,9 @@ void CL_Reset(void)
memset(player_muted, 0, sizeof(player_muted));
for (INT32 i = 0; i < MAXPLAYERS; ++i)
playerinfo[i].node = 255;
// D_StartTitle should get done now, but the calling function will handle it
}
@@ -4263,6 +4266,9 @@ void D_ClientServerInit(void)
#endif
D_LoadBan(false);
for (INT32 i = 0; i < MAXPLAYERS; ++i)
playerinfo[i].node = 255;
gametic = 0;
localgametic = 0;