diff options
author | aap <aap@papnet.eu> | 2020-07-20 19:31:59 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-20 19:50:20 +0200 |
commit | 2612c9f12cf0e787e5b3bac955a5488b101111e8 (patch) | |
tree | 3c8e0c59894df98cba51f86b2169a35b10619f0f /src/core | |
parent | e74b569115a9f9596a0cf2def74dd37117fe2aae (diff) |
CPlaneTrails and CPlaneBanners done
Diffstat (limited to 'src/core')
-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; |