From b0fa94c781252aab45a1c744827421526062b0c2 Mon Sep 17 00:00:00 2001 From: Indev Date: Sat, 29 Jun 2024 17:43:21 +0300 Subject: [PATCH] Call ServerJoin hook when consoleplayer becomes available, since it is needed for configs (which what this hook is created for) --- src/d_clisrv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index a804a8765..38f7415fc 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -2746,8 +2746,6 @@ static void CL_ConnectToServer(void) DEBFILE(va("Synchronisation Finished\n")); displayplayers[0] = consoleplayer; - - LUAh_ServerJoin(); } #ifndef NONET @@ -4296,6 +4294,9 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum) LUAh_PlayerJoin(newplayernum); + if (newplayernum == consoleplayer) + LUAh_ServerJoin(); + #ifdef HAVE_DISCORDRPC DRPC_UpdatePresence(); #endif