From 1ccd3e37bcb50157359bbc8644cb4ed898c72636 Mon Sep 17 00:00:00 2001 From: Indev Date: Thu, 11 Dec 2025 21:37:31 +0300 Subject: [PATCH] Init playerinfo[i].node to 255 so if playerinfo packet gets lost, server join screen doesn't display empty player names --- src/d_clisrv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 8f2cc5afb..cd04fb3a2 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -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;