mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
reuse R_DupPlane() in R_CheckPlane()
This commit is contained in:
parent
2f9b786dd6
commit
6335cefbca
@ -305,20 +305,7 @@ visplane_t *R_CheckPlane(visplane_t *pl, int start, int stop)
|
|||||||
if (x > intrh)
|
if (x > intrh)
|
||||||
pl->minx = unionl, pl->maxx = unionh;
|
pl->minx = unionl, pl->maxx = unionh;
|
||||||
else
|
else
|
||||||
{
|
pl = R_DupPlane(pl, start, stop);
|
||||||
unsigned hash = visplane_hash(pl->picnum, pl->lightlevel, pl->height);
|
|
||||||
visplane_t *new_pl = new_visplane(hash);
|
|
||||||
|
|
||||||
new_pl->height = pl->height;
|
|
||||||
new_pl->picnum = pl->picnum;
|
|
||||||
new_pl->lightlevel = pl->lightlevel;
|
|
||||||
new_pl->xoffs = pl->xoffs; // killough 2/28/98
|
|
||||||
new_pl->yoffs = pl->yoffs;
|
|
||||||
pl = new_pl;
|
|
||||||
pl->minx = start;
|
|
||||||
pl->maxx = stop;
|
|
||||||
memset(pl->top, 0xff, sizeof pl->top);
|
|
||||||
}
|
|
||||||
|
|
||||||
return pl;
|
return pl;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user