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,14 +3397,17 @@ void P_SaveNetGame(void)
P_NetArchiveMisc(); P_NetArchiveMisc();
// Assign the mobjnumber for pointer tracking // Assign the mobjnumber for pointer tracking
for (th = thinkercap.next; th != &thinkercap; th = th->next) if (gamestate == GS_LEVEL)
{ {
if (th->function.acp1 == (actionf_p1)P_MobjThinker) for (th = thinkercap.next; th != &thinkercap; th = th->next)
{ {
mobj = (mobj_t *)th; if (th->function.acp1 == (actionf_p1)P_MobjThinker)
if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER) {
continue; mobj = (mobj_t *)th;
mobj->mobjnum = i++; if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER)
continue;
mobj->mobjnum = i++;
}
} }
} }