components/prboom/p_spec.c
// Find the next sector with the same tag as a linedef.
// Rewritten by Lee Killough to use chained hashing to improve speed
Find the next sector with the same tag as a linedef.
Rewritten by Lee Killough to use chained hashing to improve speed
Find the next sector with the same tag as a linedef . Rewritten by Lee Killough to use chained hashing to improve speed
int P_FindSectorFromLineTag(const line_t *line, int start)
{
  start = start >= 0 ? sectors[start].nexttag :
    sectors[(unsigned) line->tag % (unsigned) numsectors].firsttag;
  while (start >= 0 && sectors[start].tag != line->tag)
    start = sectors[start].nexttag;
  return start;
}
int P_FindSectorFromLineTag ( const line_t * line , int start ) { start = start >= 0 ? sectors [ start ] . nexttag : sectors [ ( unsigned ) line -> tag % ( unsigned ) numsectors ] . firsttag ; while ( start >= 0 && sectors [ start ] . tag != line -> tag ) start = sectors [ start ] . nexttag ; return start ; }
Find the next sector with the same tag as a linedef.
Find the next sector with the same tag as a linedef .