Call ServerJoin hook when consoleplayer becomes available, since it is needed for configs (which what this hook is created for)

This commit is contained in:
indev authored and Alug committed 2024-07-10 05:23:53 +02:00
1 parent 9bf717fae9
commit b0fa94c781
1 file changed
+3 -2
+3 -2
View File
@@ -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