Fix restoration of delayed linedef executors in P_NetUnArchiveThinkers for real

This commit is contained in:
MascaraSnake 2019-10-19 14:51:24 +02:00
parent c7fd22f98a
commit 73c39990f9

View file

@ -3612,12 +3612,13 @@ static void P_NetUnArchiveThinkers(void)
} }
CONS_Debug(DBG_NETPLAY, "%u thinkers loaded in list %d\n", numloaded, i); CONS_Debug(DBG_NETPLAY, "%u thinkers loaded in list %d\n", numloaded, i);
}
if (restoreNum) if (restoreNum)
{ {
executor_t *delay = NULL; executor_t *delay = NULL;
UINT32 mobjnum; UINT32 mobjnum;
for (currentthinker = thlist[i].next; currentthinker != &thlist[i]; for (currentthinker = thlist[THINK_MAIN].next; currentthinker != &thlist[THINK_MAIN];
currentthinker = currentthinker->next) currentthinker = currentthinker->next)
{ {
if (currentthinker->function.acp1 != (actionf_p1)T_ExecutorDelay) if (currentthinker->function.acp1 != (actionf_p1)T_ExecutorDelay)
@ -3628,7 +3629,6 @@ static void P_NetUnArchiveThinkers(void)
delay->caller = P_FindNewPosition(mobjnum); delay->caller = P_FindNewPosition(mobjnum);
} }
} }
}
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////