summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-20 19:32:20 +0200
committeraap <aap@papnet.eu>2020-07-20 19:32:20 +0200
commitefd49962d281c1c32aff300cd7fb5f9e24c28571 (patch)
tree890b21347abf3046c7333ddcc0cf58e0b0967aba /src
parentfigured out magic (diff)
downloadre3-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.cpp4
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 &center, const CMatrix *mat)
{
RwV3d c;
- c = *(RwV3d*)&center;
+ 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 &center, float radius, const CMatrix *mat)
{
RwV3d c;
- c = *(RwV3d*)&center;
+ 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;