@@ -37,14 +37,12 @@ ICF float CalcSSA(float& distSQ, Fvector& C, float R)
3737
3838void R_dsgraph_structure::insert_dynamic (IRenderable* root, dxRender_Visual* pVisual, Fmatrix& xform, Fvector& Center)
3939{
40- CRender& RI = RImplementation;
41-
4240 if (pVisual->vis .marker [context_id] == marker)
4341 return ;
4442 pVisual->vis .marker [context_id] = marker;
4543
4644#if RENDER == R_R1
47- if (RI .o .vis_intersect && (pVisual->vis .accept_frame != Device.dwFrame ))
45+ if (RImplementation .o .vis_intersect && (pVisual->vis .accept_frame != Device.dwFrame ))
4846 return ;
4947 pVisual->vis .accept_frame = Device.dwFrame ;
5048#endif
@@ -90,7 +88,7 @@ void R_dsgraph_structure::insert_dynamic(IRenderable* root, dxRender_Visual* pVi
9088
9189// Shadows registering
9290#if RENDER == R_R1
93- RI .L_Shadows ->add_element (_MatrixItem{ SSA, root, pVisual, xform });
91+ RImplementation .L_Shadows ->add_element (_MatrixItem{ SSA, root, pVisual, xform });
9492#endif
9593 if (root && root->renderable_Invisible ())
9694 return ;
@@ -148,14 +146,12 @@ void R_dsgraph_structure::insert_dynamic(IRenderable* root, dxRender_Visual* pVi
148146
149147void R_dsgraph_structure::insert_static (dxRender_Visual* pVisual)
150148{
151- CRender& RI = RImplementation;
152-
153149 if (pVisual->vis .marker [context_id] == marker)
154150 return ;
155151 pVisual->vis .marker [context_id] = marker;
156152
157153#if RENDER == R_R1
158- if (RI .o .vis_intersect && (pVisual->vis .accept_frame != Device.dwFrame ))
154+ if (RImplementation .o .vis_intersect && (pVisual->vis .accept_frame != Device.dwFrame ))
159155 return ;
160156 pVisual->vis .accept_frame = Device.dwFrame ;
161157#endif
@@ -655,13 +651,13 @@ void R_dsgraph_structure::load(const xr_vector<CSector::level_sector_data_t>& se
655651 Sectors.resize (sectors_count);
656652 Portals.resize (portals_count);
657653
658- for (int idx = 0 ; idx < portals_count; ++idx)
654+ for (auto idx = 0u ; idx < portals_count; ++idx)
659655 {
660656 auto * portal = xr_new<CPortal>();
661657 Portals[idx] = portal;
662658 }
663659
664- for (int idx = 0 ; idx < sectors_count; ++idx)
660+ for (auto idx = 0u ; idx < sectors_count; ++idx)
665661 {
666662 auto * sector = xr_new<CSector>();
667663
@@ -670,7 +666,7 @@ void R_dsgraph_structure::load(const xr_vector<CSector::level_sector_data_t>& se
670666 Sectors[idx] = sector;
671667 }
672668
673- for (int idx = 0 ; idx < portals_count; ++idx)
669+ for (auto idx = 0u ; idx < portals_count; ++idx)
674670 {
675671 auto * portal = static_cast <CPortal*>(Portals[idx]);
676672
@@ -732,11 +728,10 @@ void R_dsgraph_structure::build_subspace()
732728 dxRender_Visual* root = sector->root ();
733729 // VERIFY(root->getType() == MT_HIERRARHY);
734730
735- const auto &children = static_cast <FHierrarhyVisual*>(root)->children ;
736-
737731 for (u32 v_it = 0 ; v_it < sector->r_frustums .size (); v_it++)
738732 {
739733#if 0
734+ const auto &children = static_cast<FHierrarhyVisual*>(root)->children;
740735 const auto traverse_children = [&, this](const TaskRange<size_t>& range)
741736 {
742737 for (size_t id = range.cbegin(); id != range.cend(); ++id)
0 commit comments