components/prboom/p_ceilng.c
//
// P_ActivateInStasisCeiling()
//
// Reactivates all stopped crushers with the right tag
//
// Passed the line reactivating the crusher
// Returns true if a ceiling reactivated
//
//jff 4/5/98 return if activated
P_ActivateInStasisCeiling()
Reactivates all stopped crushers with the right tag

Passed the line reactivating the crusher
Returns true if a ceiling reactivated

jff 4/5/98 return if activated
P_ActivateInStasisCeiling () Reactivates all stopped crushers with the right tag Passed the line reactivating the crusher Returns true if a ceiling reactivated jff 4 / 5 / 98 return if activated
int P_ActivateInStasisCeiling(line_t *line)
{
  ceilinglist_t *cl;
  int rtn=0;
  for (cl=activeceilings; cl; cl=cl->next)
  {
    ceiling_t *ceiling = cl->ceiling;
    if (ceiling->tag == line->tag && ceiling->direction == 0)
    {
      ceiling->direction = ceiling->olddirection;
      ceiling->thinker.function = T_MoveCeiling;
      rtn=1;
    }
  }
  return rtn;
}
int P_ActivateInStasisCeiling ( line_t * line ) { ceilinglist_t * cl ; int rtn = 0 ; for ( cl = activeceilings ; cl ; cl = cl -> next ) { ceiling_t * ceiling = cl -> ceiling ; if ( ceiling -> tag == line -> tag && ceiling -> direction == 0 ) { ceiling -> direction = ceiling -> olddirection ; ceiling -> thinker . function = T_MoveCeiling ; rtn = 1 ; } } return rtn ; }
P_ActivateInStasisCeiling()
Reactivates all stopped crushers with the right tag
P_ActivateInStasisCeiling () Reactivates all stopped crushers with the right tag
//jff 4/5/98 return if activated