summaryrefslogtreecommitdiffstats
path: root/src/core/Camera.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-20 19:31:59 +0200
committeraap <aap@papnet.eu>2020-07-20 19:50:20 +0200
commit2612c9f12cf0e787e5b3bac955a5488b101111e8 (patch)
tree3c8e0c59894df98cba51f86b2169a35b10619f0f /src/core/Camera.cpp
parentCPlane done (diff)
downloadre3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.gz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.bz2
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.lz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.xz
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.tar.zst
re3-2612c9f12cf0e787e5b3bac955a5488b101111e8.zip
Diffstat (limited to 'src/core/Camera.cpp')
-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 900c1b64..eeb8630a 100644
--- a/src/core/Camera.cpp
+++ b/src/core/Camera.cpp
@@ -4031,7 +4031,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;
@@ -4046,7 +4046,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;