mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
P_LoadExtendedSubsectorsAndSegs: Slightly simplify the seg vertex reading code
This commit is contained in:
parent
2da9c3cf81
commit
02acf6222b
1 changed files with 1 additions and 6 deletions
|
@ -2027,13 +2027,8 @@ static boolean P_LoadExtendedSubsectorsAndSegs(UINT8 **data, nodetype_t nodetype
|
||||||
for (m = 0; m < subsectors[i].numlines; m++, k++)
|
for (m = 0; m < subsectors[i].numlines; m++, k++)
|
||||||
{
|
{
|
||||||
UINT16 linenum;
|
UINT16 linenum;
|
||||||
UINT32 vert = READUINT32((*data));
|
|
||||||
|
|
||||||
segs[k].v1 = &vertexes[vert];
|
segs[k - 1 + ((m == 0) ? 0 : subsectors[i].numlines)].v2 = segs[k].v1 = &vertexes[READUINT32((*data))];
|
||||||
if (m == 0)
|
|
||||||
segs[k + subsectors[i].numlines - 1].v2 = &vertexes[vert];
|
|
||||||
else
|
|
||||||
segs[k - 1].v2 = segs[k].v1;
|
|
||||||
|
|
||||||
(*data) += 4; // partner, can be ignored by software renderer
|
(*data) += 4; // partner, can be ignored by software renderer
|
||||||
if (nodetype == NT_XGL3)
|
if (nodetype == NT_XGL3)
|
||||||
|
|
Loading…
Reference in a new issue