mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Fix a crashy oversight in the archiving!
This commit is contained in:
parent
47230e69c5
commit
3d5ee263e0
1 changed files with 9 additions and 6 deletions
|
|
@ -3384,14 +3384,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++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue