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:
1 parent
6bf113d0ff
commit
33bc484d69
1 file changed
+3
-2
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user