mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-16 01:31:30 +00:00
Fix restoration of delayed linedef executors in P_NetUnArchiveThinkers for real
This commit is contained in:
parent
c7fd22f98a
commit
73c39990f9
1 changed files with 13 additions and 13 deletions
|
@ -3612,21 +3612,21 @@ 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;
|
||||||
|
UINT32 mobjnum;
|
||||||
|
for (currentthinker = thlist[THINK_MAIN].next; currentthinker != &thlist[THINK_MAIN];
|
||||||
|
currentthinker = currentthinker->next)
|
||||||
{
|
{
|
||||||
executor_t *delay = NULL;
|
if (currentthinker->function.acp1 != (actionf_p1)T_ExecutorDelay)
|
||||||
UINT32 mobjnum;
|
continue;
|
||||||
for (currentthinker = thlist[i].next; currentthinker != &thlist[i];
|
delay = (void *)currentthinker;
|
||||||
currentthinker = currentthinker->next)
|
if (!(mobjnum = (UINT32)(size_t)delay->caller))
|
||||||
{
|
continue;
|
||||||
if (currentthinker->function.acp1 != (actionf_p1)T_ExecutorDelay)
|
delay->caller = P_FindNewPosition(mobjnum);
|
||||||
continue;
|
|
||||||
delay = (void *)currentthinker;
|
|
||||||
if (!(mobjnum = (UINT32)(size_t)delay->caller))
|
|
||||||
continue;
|
|
||||||
delay->caller = P_FindNewPosition(mobjnum);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue