Added disabled test code in P_FindSectorFromTag().
This commit is contained in:
parent
499c884501
commit
0d1f898869
20
src/p_spec.c
20
src/p_spec.c
|
@ -1020,6 +1020,25 @@ INT32 P_FindSectorFromTag(INT16 tag, INT32 start)
|
||||||
|
|
||||||
return 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
|
else
|
||||||
{
|
{
|
||||||
start = start >= 0 ? sectors[start].nexttag :
|
start = start >= 0 ? sectors[start].nexttag :
|
||||||
|
@ -1028,6 +1047,7 @@ INT32 P_FindSectorFromTag(INT16 tag, INT32 start)
|
||||||
start = sectors[start].nexttag;
|
start = sectors[start].nexttag;
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Searches the tag lists for the next line tagged to a line.
|
/** Searches the tag lists for the next line tagged to a line.
|
||||||
|
|
Loading…
Reference in New Issue