mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Wrap P_FindSectorFromLineTag() is now a wrapper for P_FindSectorFromTag().
This commit is contained in:
parent
e00c8fcdbe
commit
60eb77838c
1 changed files with 1 additions and 17 deletions
18
src/p_spec.c
18
src/p_spec.c
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue