components/prboom/p_saveg.c
// phares 9/13/98: Moved this code outside of P_ArchiveThinkers so the
// thinker indices could be used by the code that saves sector info.
phares 9/13/98: Moved this code outside of P_ArchiveThinkers so the
thinker indices could be used by the code that saves sector info.
phares 9 / 13 / 98 : Moved this code outside of P_ArchiveThinkers so the thinker indices could be used by the code that saves sector info .
void P_IndexToThinker(void)
  {
  thinker_t *th;
  thinker_t *prev = &thinkercap;
  for (th = thinkercap.next ; th != &thinkercap ; prev=th, th=th->next)
    th->prev = prev;
  }
void P_IndexToThinker ( void ) { thinker_t * th ; thinker_t * prev = & thinkercap ; for ( th = thinkercap . next ; th != & thinkercap ; prev = th , th = th -> next ) th -> prev = prev ; }
phares 9/13/98: Moved this code outside of P_ArchiveThinkers so the
thinker indices could be used by the code that saves sector info.
phares 9 / 13 / 98 : Moved this code outside of P_ArchiveThinkers so the thinker indices could be used by the code that saves sector info .
// killough 2/14/98: restore prev pointers