diff options
author | Fire_Head <Fire-Head@users.noreply.github.com> | 2019-06-02 05:15:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-02 05:15:00 +0200 |
commit | 809c81ea9ce66b998e0ebaf17965843337c4fdd9 (patch) | |
tree | c1b34122ddd4be0461a5310c964e8218b9f5781e /src/Camera.cpp | |
parent | skeleton updated, windows specific stuff added (diff) | |
parent | implemented splashes; fixed zones (diff) | |
download | re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.gz re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.bz2 re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.lz re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.xz re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.tar.zst re3-809c81ea9ce66b998e0ebaf17965843337c4fdd9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Camera.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Camera.cpp b/src/Camera.cpp index fe96f574..98966549 100644 --- a/src/Camera.cpp +++ b/src/Camera.cpp @@ -69,6 +69,17 @@ CCamera::IsBoxVisible(RwV3d *box, const CMatrix *mat) return true; } +int +CCamera::GetLookDirection(void) +{ + if(Cams[ActiveCam].Mode == CCam::MODE_CAMONASTRING || + Cams[ActiveCam].Mode == CCam::MODE_FIRSTPERSON || + Cams[ActiveCam].Mode == CCam::MODE_BEHINDBOAT || + Cams[ActiveCam].Mode == CCam::MODE_FOLLOWPED) + return Cams[ActiveCam].DirectionWasLooking; + return LOOKING_FORWARD;; +} + WRAPPER void CCamera::Fade(float timeout, int16 direction) { EAXJMP(0x46B3A0); } WRAPPER void CCamera::ProcessFade(void) { EAXJMP(0x46F080); } WRAPPER void CCamera::ProcessMusicFade(void) { EAXJMP(0x46F1E0); } |