dont run playerjoin hook on resynch

This commit is contained in:
Alug committed 2024-09-16 00:19:33 +02:00
1 parent ab47582f8a
commit 2923020273
1 file changed
+3 -2
+3 -2
View File
@@ -4319,9 +4319,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