summaryrefslogtreecommitdiffstats
path: root/src/core/Camera.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-18 15:41:09 +0200
committeraap <aap@papnet.eu>2019-07-18 15:41:09 +0200
commitfd01f9b25cdc3b527a886ee6b9237b01a5475295 (patch)
tree6db1dbfeb6feedcf79e870f417b82af29da7ca21 /src/core/Camera.cpp
parentMerge pull request #147 from erorcun/erorcun (diff)
downloadre3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar
re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.gz
re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.bz2
re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.lz
re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.xz
re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.tar.zst
re3-fd01f9b25cdc3b527a886ee6b9237b01a5475295.zip
Diffstat (limited to '')
-rw-r--r--src/core/Camera.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp
index e35198d8..a66d6ac9 100644
--- a/src/core/Camera.cpp
+++ b/src/core/Camera.cpp
@@ -95,6 +95,14 @@ CCamera::GetLookDirection(void)
return LOOKING_FORWARD;;
}
+bool
+CCamera::GetLookingForwardFirstPerson()
+{
+ return Cams[ActiveCam].Mode == CCam::MODE_FIRSTPERSON &&
+ Cams[ActiveCam].DirectionWasLooking == 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); }