mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-18 16:30:58 +00:00
Added disabled test code in P_FindSectorFromTag().
This commit is contained in:
parent
499c884501
commit
0d1f898869
1 changed files with 20 additions and 0 deletions
20
src/p_spec.c
20
src/p_spec.c
|
@ -1020,6 +1020,25 @@ INT32 P_FindSectorFromTag(INT16 tag, INT32 start)
|
|||
|
||||
return start;
|
||||
}
|
||||
#if 0
|
||||
INT32 tpos = 0;
|
||||
|
||||
if (tags_sectors[tag])
|
||||
{
|
||||
// Resume previous position.
|
||||
if (start != -1)
|
||||
for (; tpos < tags_sectors[(UINT16)tag]->count;)
|
||||
if (start == tags_sectors[(UINT16)tag]->elements[tpos++])
|
||||
break;
|
||||
|
||||
if (tpos >= tags_sectors[(UINT16)tag]->count)
|
||||
return -1;
|
||||
|
||||
return tags_sectors[(UINT16)tag]->elements[tpos++];
|
||||
}
|
||||
|
||||
return -1;
|
||||
#else
|
||||
else
|
||||
{
|
||||
start = start >= 0 ? sectors[start].nexttag :
|
||||
|
@ -1028,6 +1047,7 @@ INT32 P_FindSectorFromTag(INT16 tag, INT32 start)
|
|||
start = sectors[start].nexttag;
|
||||
return start;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/** Searches the tag lists for the next line tagged to a line.
|
||||
|
|
Loading…
Reference in a new issue