From 0f3d740fd4cb52e9d56919df118ff0af8e78e59d Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sat, 18 Mar 2023 22:37:03 -0700 Subject: [PATCH] Correctly populate local keys as a netgame client --- src/d_clisrv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index b1dbb870b..aed74e55f 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -3715,6 +3715,8 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum) D_SendPlayerConfig(splitscreenplayer); addedtogame = true; + CONS_Printf("It's me, node %d, with ID %s! (This is uninitialized memory because Tyron is a dumbass!)\n", node, GetPrettyRRID(lastReceivedKey[node][splitscreenplayer], true)); + memcpy(lastReceivedKey[node][splitscreenplayer], PR_GetLocalPlayerProfile(splitscreenplayer)->public_key, 32); } players[newplayernum].splitscreenindex = splitscreenplayer;