Merge branch 'master' into sonicitems

This commit is contained in:
Sryder 2018-07-06 23:33:54 +01:00
commit a7ea4db50d
2 changed files with 10 additions and 7 deletions

View file

@ -3539,7 +3539,7 @@ static void HandleConnect(SINT8 node)
#ifdef JOININGAME #ifdef JOININGAME
if (nodewaiting[node]) if (nodewaiting[node])
{ {
if (newnode) if (node && newnode)
{ {
SV_SendSaveGame(node); // send a complete game state SV_SendSaveGame(node); // send a complete game state
DEBFILE("send savegame\n"); DEBFILE("send savegame\n");

View file

@ -3397,6 +3397,8 @@ void P_SaveNetGame(void)
P_NetArchiveMisc(); P_NetArchiveMisc();
// Assign the mobjnumber for pointer tracking // Assign the mobjnumber for pointer tracking
if (gamestate == GS_LEVEL)
{
for (th = thinkercap.next; th != &thinkercap; th = th->next) for (th = thinkercap.next; th != &thinkercap; th = th->next)
{ {
if (th->function.acp1 == (actionf_p1)P_MobjThinker) if (th->function.acp1 == (actionf_p1)P_MobjThinker)
@ -3407,6 +3409,7 @@ void P_SaveNetGame(void)
mobj->mobjnum = i++; mobj->mobjnum = i++;
} }
} }
}
P_NetArchivePlayers(); P_NetArchivePlayers();
if (gamestate == GS_LEVEL) if (gamestate == GS_LEVEL)