diff options
author | aap <aap@papnet.eu> | 2020-07-20 19:32:20 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-20 19:32:20 +0200 |
commit | efd49962d281c1c32aff300cd7fb5f9e24c28571 (patch) | |
tree | 890b21347abf3046c7333ddcc0cf58e0b0967aba /src | |
parent | figured out magic (diff) | |
download | re3-efd49962d281c1c32aff300cd7fb5f9e24c28571.tar re3-efd49962d281c1c32aff300cd7fb5f9e24c28571.tar.gz re3-efd49962d281c1c32aff300cd7fb5f9e24c28571.tar.bz2 re3-efd49962d281c1c32aff300cd7fb5f9e24c28571.tar.lz re3-efd49962d281c1c32aff300cd7fb5f9e24c28571.tar.xz re3-efd49962d281c1c32aff300cd7fb5f9e24c28571.tar.zst re3-efd49962d281c1c32aff300cd7fb5f9e24c28571.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/Camera.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp index 340dbaee..44749fd7 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -3622,7 +3622,7 @@ bool CCamera::IsPointVisible(const CVector ¢er, const CMatrix *mat) { RwV3d c; - c = *(RwV3d*)¢er; + c = center; RwV3dTransformPoints(&c, &c, 1, &mat->m_matrix); if(c.y < CDraw::GetNearClipZ()) return false; if(c.y > CDraw::GetFarClipZ()) return false; @@ -3637,7 +3637,7 @@ bool CCamera::IsSphereVisible(const CVector ¢er, float radius, const CMatrix *mat) { RwV3d c; - c = *(RwV3d*)¢er; + c = center; RwV3dTransformPoints(&c, &c, 1, &mat->m_matrix); if(c.y + radius < CDraw::GetNearClipZ()) return false; if(c.y - radius > CDraw::GetFarClipZ()) return false; |