skip manually initializing some fields P_SetupLines

redundant due to earlier calloc
This commit is contained in:
Alug committed 2025-09-12 18:29:07 +02:00
1 parent 5383fee6af
commit 6d6fa156f3
1 file changed
+1 -10
+1 -10
View File
@@ -1114,18 +1114,12 @@ static void P_SetupLines(void)
vertex_t *v1 = ld->v1;
vertex_t *v2 = ld->v2;
#ifdef WALLSPLATS
ld->splats = NULL;
#endif
ld->polyobj = NULL;
ld->dx = v2->x - v1->x;
ld->dy = v2->y - v1->y;
ld->angle = R_PointToAngle2(0, 0, ld->dx, ld->dy);
ld->alpha = FRACUNIT;
ld->blendmode = 0;
if (!ld->dx)
ld->slopetype = ST_VERTICAL;
@@ -1163,7 +1157,7 @@ static void P_SetupLines(void)
// cph 2002/07/20 - these errors are fatal if not fixed, so apply them
UINT8 j;
for (j=0; j < 2; j++)
for (j = 0; j < 2; j++)
{
if (ld->sidenum[j] != 0xffff && ld->sidenum[j] >= (UINT16)numsides)
{
@@ -1173,10 +1167,7 @@ static void P_SetupLines(void)
}
}
ld->frontsector = ld->backsector = NULL;
ld->validcount = 0;
ld->firsttag = ld->nexttag = -1;
ld->callcount = 0;
// killough 11/98: fix common wad errors (missing sidedefs):
if (ld->sidenum[0] == 0xffff)