Skip to content

Commit

Permalink
Scene: take const param
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitry-ishenko committed Jul 8, 2023
1 parent 5882e03 commit 9549fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OVP/D3D9Client/Scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3685,7 +3685,7 @@ void Scene::RenderGlares()

// ===========================================================================================
//
bool Scene::IsVisibleInCamera(D3DXVECTOR3 *pCnt, float radius)
bool Scene::IsVisibleInCamera(const D3DXVECTOR3 *pCnt, float radius)
{
float z = Camera.z.x*pCnt->x + Camera.z.y*pCnt->y + Camera.z.z*pCnt->z;
if (z<(-radius)) return false;
Expand Down
2 changes: 1 addition & 1 deletion OVP/D3D9Client/Scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class Scene {
bool CameraPan(VECTOR3 pan, double speed);

// Check if a sphere located in pCnt (relative to cam) with a specified radius is visible in a camera
bool IsVisibleInCamera(D3DXVECTOR3 *pCnt, float radius);
bool IsVisibleInCamera(const D3DXVECTOR3 *pCnt, float radius);
bool IsProxyMesh();
bool CameraDirection2Viewport(const VECTOR3 &dir, int &x, int &y);
double GetTanAp() const { return tan(Camera.aperture); }
Expand Down

0 comments on commit 9549fd9

Please sign in to comment.