components/prboom/p_ceilng.c
//
// P_RemoveActiveCeiling()
//
// Removes a ceiling from the list of active ceilings
//
// Passed the ceiling motion structure
// Returns nothing
//
P_RemoveActiveCeiling()
Removes a ceiling from the list of active ceilings

Passed the ceiling motion structure
Returns nothing
P_RemoveActiveCeiling () Removes a ceiling from the list of active ceilings Passed the ceiling motion structure Returns nothing
void P_RemoveActiveCeiling(ceiling_t* ceiling)
{
  ceilinglist_t *list = ceiling->list;
  ceiling->sector->ceilingdata = NULL;  
  P_RemoveThinker(&ceiling->thinker);
  if ((*list->prev = list->next))
    list->next->prev = list->prev;
  free(list);
}
void P_RemoveActiveCeiling ( ceiling_t * ceiling ) { ceilinglist_t * list = ceiling -> list ; ceiling -> sector -> ceilingdata = NULL ; P_RemoveThinker ( & ceiling -> thinker ) ; if ( ( * list -> prev = list -> next ) ) list -> next -> prev = list -> prev ; free ( list ) ; }
P_RemoveActiveCeiling()
Removes a ceiling from the list of active ceilings
P_RemoveActiveCeiling () Removes a ceiling from the list of active ceilings
//jff 2/22/98