mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Fix seg->length and flength not being set at all for UDMF maps
This commit is contained in:
parent
713b965a85
commit
5241b83f97
1 changed files with 4 additions and 0 deletions
|
@ -2401,6 +2401,10 @@ static boolean P_LoadExtendedSubsectorsAndSegs(UINT8 **data, nodetype_t nodetype
|
||||||
seg->angle = R_PointToAngle2(v1->x, v1->y, v2->x, v2->y);
|
seg->angle = R_PointToAngle2(v1->x, v1->y, v2->x, v2->y);
|
||||||
if (seg->linedef)
|
if (seg->linedef)
|
||||||
segs[i].offset = FixedHypot(v1->x - seg->linedef->v1->x, v1->y - seg->linedef->v1->y);
|
segs[i].offset = FixedHypot(v1->x - seg->linedef->v1->x, v1->y - seg->linedef->v1->y);
|
||||||
|
seg->length = P_SegLength(seg);
|
||||||
|
#ifdef HWRENDER
|
||||||
|
seg->flength = (rendermode == render_opengl) ? P_SegLengthFloat(seg) : 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue