This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
3 deletions.
-
+1
−1
src/core/Camera.cpp
-
+2
−2
src/render/Sprite.cpp
There are no files selected for viewing
|
|
@@ -3193,7 +3193,7 @@ CCamera::GetLookDirection(void) |
|
|
Cams[ActiveCam].Mode == CCam::MODE_BEHINDBOAT || |
|
|
Cams[ActiveCam].Mode == CCam::MODE_FOLLOWPED) |
|
|
return Cams[ActiveCam].DirectionWasLooking; |
|
|
return LOOKING_FORWARD;; |
|
|
return LOOKING_FORWARD; |
|
|
} |
|
|
|
|
|
bool |
|
|
|
|
|
@@ -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; |
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.