diff options
author | aap <aap@papnet.eu> | 2020-07-20 19:56:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 19:56:03 +0200 |
commit | f0f3ce018dc8da7d702bcb25755f8443d25796e6 (patch) | |
tree | 3c8e0c59894df98cba51f86b2169a35b10619f0f /src/core/Camera.cpp | |
parent | Fix OneShotPriority overflow (diff) | |
parent | CPlaneTrails and CPlaneBanners done (diff) | |
download | re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.gz re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.bz2 re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.lz re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.xz re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.tar.zst re3-f0f3ce018dc8da7d702bcb25755f8443d25796e6.zip |
Diffstat (limited to 'src/core/Camera.cpp')
-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 900c1b64..eeb8630a 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -4031,7 +4031,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; @@ -4046,7 +4046,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; |