From 33bc484d69e20fad40fb6d3d9fd889d7c9829a33 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 98279839f..710f2687b 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -2748,8 +2748,6 @@ static void CL_ConnectToServer(void) DEBFILE(va("Synchronisation Finished\n")); displayplayers[0] = consoleplayer; - - LUAh_ServerJoin(); } #ifndef NONET @@ -4312,6 +4310,9 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum) LUAh_PlayerJoin(newplayernum); + if (newplayernum == consoleplayer) + LUAh_ServerJoin(); + #ifdef HAVE_DISCORDRPC DRPC_UpdatePresence(); #endif