From 11b2ee0d26d7188b6b06d0a5820df0290ba702b8 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 18 May 2023 18:40:00 -0700 Subject: [PATCH] Got_AddBot: build party and set playerconsole Fixes bot's local party being empty (fails assert at G_LeaveParty). --- src/d_clisrv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 415934cc7..6de772b50 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -4038,6 +4038,9 @@ static void Got_AddBot(UINT8 **p, INT32 playernum) sprintf(player_names[newplayernum], "%s", skins[skinnum].realname); SetPlayerSkinByNum(newplayernum, skinnum); + playerconsole[newplayernum] = newplayernum; + G_BuildLocalSplitscreenParty(newplayernum); + if (netgame) { HU_AddChatText(va("\x82*Bot %d has been added to the game", newplayernum+1), false); @@ -7108,4 +7111,4 @@ void SendServerNotice(SINT8 target, char *message) if (client) return; DoSayCommand(message, target + 1, HU_PRIVNOTICE, servernode); -} \ No newline at end of file +}