mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 16:21:50 +01:00
fix UB shit
This commit is contained in:
parent
c83b351887
commit
0ac3477035
@ -3218,7 +3218,7 @@ CCamera::GetLookDirection(void)
|
|||||||
Cams[ActiveCam].Mode == CCam::MODE_BEHINDBOAT ||
|
Cams[ActiveCam].Mode == CCam::MODE_BEHINDBOAT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_FOLLOWPED)
|
Cams[ActiveCam].Mode == CCam::MODE_FOLLOWPED)
|
||||||
return Cams[ActiveCam].DirectionWasLooking;
|
return Cams[ActiveCam].DirectionWasLooking;
|
||||||
return LOOKING_FORWARD;;
|
return LOOKING_FORWARD;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
@ -22,8 +22,8 @@ CSprite::CalcHorizonCoors(void)
|
|||||||
bool
|
bool
|
||||||
CSprite::CalcScreenCoors(const RwV3d &in, RwV3d *out, float *outw, float *outh, bool farclip)
|
CSprite::CalcScreenCoors(const RwV3d &in, RwV3d *out, float *outw, float *outh, bool farclip)
|
||||||
{
|
{
|
||||||
CVector viewvec = TheCamera.m_viewMatrix * *(CVector*)∈
|
CVector viewvec = TheCamera.m_viewMatrix * in;
|
||||||
*out = *(RwV3d*)&viewvec;
|
*out = viewvec;
|
||||||
if(out->z <= CDraw::GetNearClipZ() + 1.0f) return false;
|
if(out->z <= CDraw::GetNearClipZ() + 1.0f) return false;
|
||||||
if(out->z >= CDraw::GetFarClipZ() && farclip) return false;
|
if(out->z >= CDraw::GetFarClipZ() && farclip) return false;
|
||||||
float recip = 1.0f/out->z;
|
float recip = 1.0f/out->z;
|
||||||
|
Loading…
Reference in New Issue
Block a user