readd check for node before SV_SendSaveGame

why? i dont know lol
This commit is contained in:
Alug committed 2025-12-02 22:04:18 +01:00
1 parent 6c7df2511d
commit 09c3b8f615
1 file changed
+6 -3
+6 -3
View File
@@ -4806,7 +4806,7 @@ static size_t TotalTextCmdPerTic(tic_t tic)
static void PT_ClientJoin(SINT8 node)
{
// Ignore duplicate packets
if (client || nodeingame[node]|| levelloading)
if (client || nodeingame[node] || levelloading)
return;
doomdata_t *netbuffer = DOOMCOM_DATA(doomcom);
@@ -4942,8 +4942,11 @@ static void PT_ClientJoin(SINT8 node)
if (nodewaiting[node])
{
SV_SendSaveGame(node, false); // send a complete game state
DEBFILE("send savegame\n");
if (node)
{
SV_SendSaveGame(node, false); // send a complete game state
DEBFILE("send savegame\n");
}
SV_AddWaitingPlayers(node);
}