Wrap P_FindSectorFromLineTag() is now a wrapper for P_FindSectorFromTag().

This commit is contained in:
Nev3r 2020-04-12 13:04:15 +02:00
parent a7e99ab5cf
commit ab2619d538
1 changed files with 1 additions and 17 deletions

View File

@ -998,23 +998,7 @@ static sector_t *P_FindModelCeilingSector(fixed_t ceildestheight, INT32 secnum)
*/
INT32 P_FindSectorFromLineTag(line_t *line, INT32 start)
{
if (line->tag == -1)
{
start++;
if (start >= (INT32)numsectors)
return -1;
return start;
}
else
{
start = start >= 0 ? sectors[start].nexttag :
sectors[(unsigned)line->tag % numsectors].firsttag;
while (start >= 0 && sectors[start].tag != line->tag)
start = sectors[start].nexttag;
return start;
}
return P_FindSectorFromTag(line->tag, start);
}
/** Searches the tag lists for the next sector with a given tag.