dont run playerjoin hook on resynch

This commit is contained in:
Alug committed 2024-09-16 00:54:26 +02:00
1 parent 43690c9b2c
commit 5f7bf4164d
1 file changed
+3 -2
+3 -2
View File
@@ -4437,9 +4437,10 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum)
D_AddAutoloadFiles();
LUAh_PlayerJoin(newplayernum);
if (!resendingsavegame[node])
LUAh_PlayerJoin(newplayernum);
if (newplayernum == consoleplayer)
if (newplayernum == consoleplayer && !resendingsavegame[node])
LUAh_ServerJoin();
#ifdef HAVE_DISCORDRPC