remove some unused stuff in portal struct

This commit is contained in:
Alug committed 2024-10-30 13:52:00 +01:00
1 parent b8fdb05f35
commit e08b6af500
2 files changed
+2 -10

No files matched your search

-4
View File
@@ -55,9 +55,6 @@ static gl_portal_t* HWR_Portal_Add (seg_t *seg)
}
portal->next = NULL;
// Increase recursion level.
portal->pass = portalrender+1;
portal->seg = seg;
return portal;
@@ -112,7 +109,6 @@ void HWR_Portal_Add2Lines(const INT32 line1, const INT32 line2, seg_t *seg)
portal->angle1 = R_PointToAngle64(seg->v1->x, seg->v1->y) + dangle;
portal->angle2 = R_PointToAngle64(seg->v2->x, seg->v2->y) + dangle;
portal->startline = line1;
portal->clipline = line2;
}
+2 -6
View File
@@ -41,12 +41,8 @@ typedef struct gl_portal_s
fixed_t viewz;
angle_t viewangle;
UINT8 pass; /**< Keeps track of the portal's recursion depth. */
INT32 startline;
INT32 clipline; /**< Optional clipline for line-based portals. */
INT32 drawcount; /**< For OpenGL. */
seg_t *seg;
seg_t *seg; // seg that is used for drawing to the stencil buffer
INT32 clipline; // Optional clipline for line-based portals
// angles for the left and right edges of the portal
// relative to the viewpoint