diff options
author | aap <aap@papnet.eu> | 2020-05-26 18:50:11 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-26 18:50:19 +0200 |
commit | 7f60be9814894fc5c6e9fbc9d52be492c8c92a11 (patch) | |
tree | f15b8d6bb195ad71ffd9e7051c26a5b42e2f71a7 /src/render/Sprite.cpp | |
parent | Merge remote-tracking branch 'origin/master' into miami (diff) | |
download | re3-7f60be9814894fc5c6e9fbc9d52be492c8c92a11.tar re3-7f60be9814894fc5c6e9fbc9d52be492c8c92a11.tar.gz re3-7f60be9814894fc5c6e9fbc9d52be492c8c92a11.tar.bz2 re3-7f60be9814894fc5c6e9fbc9d52be492c8c92a11.tar.lz re3-7f60be9814894fc5c6e9fbc9d52be492c8c92a11.tar.xz re3-7f60be9814894fc5c6e9fbc9d52be492c8c92a11.tar.zst re3-7f60be9814894fc5c6e9fbc9d52be492c8c92a11.zip |
Diffstat (limited to 'src/render/Sprite.cpp')
-rw-r--r-- | src/render/Sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Sprite.cpp b/src/render/Sprite.cpp index 9631aced..a6d2db7b 100644 --- a/src/render/Sprite.cpp +++ b/src/render/Sprite.cpp @@ -22,8 +22,8 @@ CSprite::CalcHorizonCoors(void) bool CSprite::CalcScreenCoors(const RwV3d &in, RwV3d *out, float *outw, float *outh, bool farclip) { - CVector viewvec = TheCamera.m_viewMatrix * *(CVector*)∈ - *out = *(RwV3d*)&viewvec; + CVector viewvec = TheCamera.m_viewMatrix * in; + *out = viewvec; if(out->z <= CDraw::GetNearClipZ() + 1.0f) return false; if(out->z >= CDraw::GetFarClipZ() && farclip) return false; float recip = 1.0f/out->z; |