components/prboom/p_ceilng.c
//
// EV_CeilingCrushStop()
//
// Stops all active ceilings with the right tag
//
// Passed the linedef stopping the ceilings
// Returns true if a ceiling put in stasis
//
EV_CeilingCrushStop()
Stops all active ceilings with the right tag

Passed the linedef stopping the ceilings
Returns true if a ceiling put in stasis
EV_CeilingCrushStop () Stops all active ceilings with the right tag Passed the linedef stopping the ceilings Returns true if a ceiling put in stasis
int EV_CeilingCrushStop(line_t* line)
{
  int rtn=0;
  ceilinglist_t *cl;
  for (cl=activeceilings; cl; cl=cl->next)
  {
    ceiling_t *ceiling = cl->ceiling;
    if (ceiling->direction != 0 && ceiling->tag == line->tag)
    {
      ceiling->olddirection = ceiling->direction;
      ceiling->direction = 0;
      ceiling->thinker.function = NULL;
      rtn=1;
    }
  }
  return rtn;
}
int EV_CeilingCrushStop ( line_t * line ) { int rtn = 0 ; ceilinglist_t * cl ; for ( cl = activeceilings ; cl ; cl = cl -> next ) { ceiling_t * ceiling = cl -> ceiling ; if ( ceiling -> direction != 0 && ceiling -> tag == line -> tag ) { ceiling -> olddirection = ceiling -> direction ; ceiling -> direction = 0 ; ceiling -> thinker . function = NULL ; rtn = 1 ; } } return rtn ; }
EV_CeilingCrushStop()
Stops all active ceilings with the right tag
EV_CeilingCrushStop () Stops all active ceilings with the right tag