@@ -37,14 +37,12 @@ ICF float CalcSSA(float& distSQ, Fvector& C, float R)
37
37
38
38
void R_dsgraph_structure::insert_dynamic (IRenderable* root, dxRender_Visual* pVisual, Fmatrix& xform, Fvector& Center)
39
39
{
40
- CRender& RI = RImplementation;
41
-
42
40
if (pVisual->vis .marker [context_id] == marker)
43
41
return ;
44
42
pVisual->vis .marker [context_id] = marker;
45
43
46
44
#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 ))
48
46
return ;
49
47
pVisual->vis .accept_frame = Device.dwFrame ;
50
48
#endif
@@ -90,7 +88,7 @@ void R_dsgraph_structure::insert_dynamic(IRenderable* root, dxRender_Visual* pVi
90
88
91
89
// Shadows registering
92
90
#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 });
94
92
#endif
95
93
if (root && root->renderable_Invisible ())
96
94
return ;
@@ -148,14 +146,12 @@ void R_dsgraph_structure::insert_dynamic(IRenderable* root, dxRender_Visual* pVi
148
146
149
147
void R_dsgraph_structure::insert_static (dxRender_Visual* pVisual)
150
148
{
151
- CRender& RI = RImplementation;
152
-
153
149
if (pVisual->vis .marker [context_id] == marker)
154
150
return ;
155
151
pVisual->vis .marker [context_id] = marker;
156
152
157
153
#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 ))
159
155
return ;
160
156
pVisual->vis .accept_frame = Device.dwFrame ;
161
157
#endif
@@ -655,13 +651,13 @@ void R_dsgraph_structure::load(const xr_vector<CSector::level_sector_data_t>& se
655
651
Sectors.resize (sectors_count);
656
652
Portals.resize (portals_count);
657
653
658
- for (int idx = 0 ; idx < portals_count; ++idx)
654
+ for (auto idx = 0u ; idx < portals_count; ++idx)
659
655
{
660
656
auto * portal = xr_new<CPortal>();
661
657
Portals[idx] = portal;
662
658
}
663
659
664
- for (int idx = 0 ; idx < sectors_count; ++idx)
660
+ for (auto idx = 0u ; idx < sectors_count; ++idx)
665
661
{
666
662
auto * sector = xr_new<CSector>();
667
663
@@ -670,7 +666,7 @@ void R_dsgraph_structure::load(const xr_vector<CSector::level_sector_data_t>& se
670
666
Sectors[idx] = sector;
671
667
}
672
668
673
- for (int idx = 0 ; idx < portals_count; ++idx)
669
+ for (auto idx = 0u ; idx < portals_count; ++idx)
674
670
{
675
671
auto * portal = static_cast <CPortal*>(Portals[idx]);
676
672
@@ -732,11 +728,10 @@ void R_dsgraph_structure::build_subspace()
732
728
dxRender_Visual* root = sector->root ();
733
729
// VERIFY(root->getType() == MT_HIERRARHY);
734
730
735
- const auto &children = static_cast <FHierrarhyVisual*>(root)->children ;
736
-
737
731
for (u32 v_it = 0 ; v_it < sector->r_frustums .size (); v_it++)
738
732
{
739
733
#if 0
734
+ const auto &children = static_cast<FHierrarhyVisual*>(root)->children;
740
735
const auto traverse_children = [&, this](const TaskRange<size_t>& range)
741
736
{
742
737
for (size_t id = range.cbegin(); id != range.cend(); ++id)
0 commit comments