From 75d05702fb311594bbe493aa611b9523bb9a9db6 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Tue, 18 Aug 2020 04:14:17 -0400 Subject: [PATCH] Fix Got_AddPlayer --- src/d_clisrv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 083c0381a..eef484b17 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -3612,10 +3612,8 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum) node = (UINT8)READUINT8(*p); newplayernum = (UINT8)READUINT8(*p); - console = (UINT8)READUINT8(*p); - splitscreenplayer = (UINT8)READUINT8(*p); - CONS_Debug(DBG_NETPLAY, "addplayer: %d %d %d\n", node, newplayernum, splitscreenplayer); + CONS_Debug(DBG_NETPLAY, "addplayer: %d %d\n", node, newplayernum); rejoined = playeringame[newplayernum]; @@ -3651,6 +3649,9 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum) READSTRINGN(*p, player_names[newplayernum], MAXPLAYERNAME); + console = (UINT8)READUINT8(*p); + splitscreenplayer = (UINT8)READUINT8(*p); + // the server is creating my player if (node == mynode) {