components/prboom/p_tick.c
/* cph 2002/01/13 - iterator for thinker list
 * WARNING: Do not modify thinkers between calls to this functin
 */
cph 2002/01/13 - iterator for thinker list
WARNING: Do not modify thinkers between calls to this functin
cph 2002 / 01 / 13 - iterator for thinker list WARNING : Do not modify thinkers between calls to this functin
thinker_t* P_NextThinker(thinker_t* th, th_class cl)
{
  thinker_t* top = &thinkerclasscap[cl];
  if (!th) th = top;
  th = cl == th_all ? th->next : th->cnext;
  return th == top ? NULL : th;
}
thinker_t * P_NextThinker ( thinker_t * th , th_class cl ) { thinker_t * top = & thinkerclasscap [ cl ] ; if ( ! th ) th = top ; th = cl == th_all ? th -> next : th -> cnext ; return th == top ? NULL : th ; }
cph 2002/01/13 - iterator for thinker list
 WARNING: Do not modify thinkers between calls to this functin
cph 2002 / 01 / 13 - iterator for thinker list WARNING : Do not modify thinkers between calls to this functin