declare outside of lööp also add const in r_
This commit is contained in:
1 parent
0e88981425
commit
c4d39eae25
2 files changed
+7
-4
No files matched your search
@@ -3531,14 +3531,16 @@ static boolean HWR_PortalCheckBBox(const fixed_t *bspcoord)
|
||||
|
||||
static void HWR_RenderBSPNode(INT32 bspnum)
|
||||
{
|
||||
const node_t *bsp;
|
||||
INT32 side;
|
||||
ps_numbspcalls.value.i++;
|
||||
|
||||
while (!(bspnum & NF_SUBSECTOR)) // Found a subsector?
|
||||
{
|
||||
const node_t *bsp = &nodes[bspnum];
|
||||
bsp = &nodes[bspnum];
|
||||
|
||||
// Decide which side the view point is on.
|
||||
INT32 side = R_PointOnSide(viewx, viewy, bsp);
|
||||
side = R_PointOnSide(viewx, viewy, bsp);
|
||||
|
||||
// Recursively divide front space.
|
||||
if (HWR_PortalCheckBBox(bsp->bbox[side]))
|
||||
@@ -3554,7 +3556,8 @@ static void HWR_RenderBSPNode(INT32 bspnum)
|
||||
// PORTAL CULLING
|
||||
if (portalclipline && portalcullsector)
|
||||
{
|
||||
if (portalcullsector != subsectors[bspnum & ~NF_SUBSECTOR].sector)
|
||||
sector_t *sect = subsectors[bspnum & ~NF_SUBSECTOR].sector;
|
||||
if (sect != portalcullsector)
|
||||
return;
|
||||
portalcullsector = NULL;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1237,7 +1237,7 @@ INT32 R_GetPlaneLight(sector_t *sector, fixed_t planeheight, boolean underside)
|
||||
|
||||
void R_RenderBSPNode(INT32 bspnum)
|
||||
{
|
||||
node_t *bsp;
|
||||
const node_t *bsp;
|
||||
INT32 side;
|
||||
|
||||
ps_numbspcalls.value.i++;
|
||||
|
||||
Reference in new issue
Block a user