Skip to content

Commit 4f6ec5c

Browse files
Remove unused instances of SphereClass
1 parent 2840b5f commit 4f6ec5c

6 files changed

Lines changed: 0 additions & 12 deletions

File tree

Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/Shadow/W3DVolumetricShadow.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3258,7 +3258,6 @@ void W3DVolumetricShadowManager::renderShadows( Bool forceStencilFill )
32583258
Int numRenderedShadows = 0;
32593259

32603260
AABoxClass bbox;
3261-
SphereClass bsphere;
32623261

32633262
//Get a bounding box around our visible universe. Bounded by terrain and the sky
32643263
//so much tighter fitting volume than what's actually visible. This will cull

Generals/Code/Libraries/Source/WWVegas/WW3D2/boxrobj.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,6 @@ void BoxRenderObjClass::render_box(RenderInfoClass & rinfo,const Vector3 & cente
511511
DX8Wrapper::Set_Index_Buffer(ibaccess,0);
512512
DX8Wrapper::Set_Vertex_Buffer(vbaccess);
513513

514-
SphereClass sphere;
515-
Get_Obj_Space_Bounding_Sphere(sphere);
516-
517514
DX8Wrapper::Draw_Triangles(buffer_type,0,NUM_BOX_FACES,0,NUM_BOX_VERTS);
518515
}
519516
}

Generals/Code/Libraries/Source/WWVegas/WW3D2/dazzle.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,8 +1180,6 @@ void DazzleRenderObjClass::Render_Dazzle(CameraClass* camera)
11801180
DX8Wrapper::Set_Index_Buffer(ib_access,dazzle_vertex_count);
11811181
DX8Wrapper::Set_Shader(default_halo_shader);
11821182
DX8Wrapper::Set_Texture(0,types[type]->Get_Halo_Texture());
1183-
SphereClass sphere(Get_Position(),0.1f);
1184-
11851183
DX8Wrapper::Draw_Triangles(0,halo_poly_count,0,vertex_count);
11861184
}
11871185

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Shadow/W3DVolumetricShadow.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3402,7 +3402,6 @@ void W3DVolumetricShadowManager::renderShadows( Bool forceStencilFill )
34023402
Int numRenderedShadows = 0;
34033403

34043404
AABoxClass bbox;
3405-
SphereClass bsphere;
34063405

34073406
//Get a bounding box around our visible universe. Bounded by terrain and the sky
34083407
//so much tighter fitting volume than what's actually visible. This will cull

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/boxrobj.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,6 @@ void BoxRenderObjClass::render_box(RenderInfoClass & rinfo,const Vector3 & cente
511511
DX8Wrapper::Set_Index_Buffer(ibaccess,0);
512512
DX8Wrapper::Set_Vertex_Buffer(vbaccess);
513513

514-
SphereClass sphere;
515-
Get_Obj_Space_Bounding_Sphere(sphere);
516-
517514
DX8Wrapper::Draw_Triangles(buffer_type,0,NUM_BOX_FACES,0,NUM_BOX_VERTS);
518515
}
519516
}

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/dazzle.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,8 +1227,6 @@ void DazzleRenderObjClass::Render_Dazzle(CameraClass* camera)
12271227
DX8Wrapper::Set_Index_Buffer(ib_access,dazzle_vertex_count);
12281228
DX8Wrapper::Set_Shader(default_halo_shader);
12291229
DX8Wrapper::Set_Texture(0,types[type]->Get_Halo_Texture());
1230-
SphereClass sphere(Get_Position(),0.1f);
1231-
12321230
DX8Wrapper::Draw_Triangles(0,halo_poly_count,0,vertex_count);
12331231
}
12341232

0 commit comments

Comments
 (0)