summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-20 15:23:42 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-20 15:23:42 +0200
commitfd3cd2c26ac24fc104878cf80f59518ae51d2e8d (patch)
tree90809f252c4cbb485f5df5f23c76f9f380d9a8d2 /src/core/Cam.cpp
parentDucking, shooting vehicle occupants and weapon fixes (diff)
parentMerge pull request #636 from aap/miami (diff)
downloadre3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.gz
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.bz2
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.lz
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.xz
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.tar.zst
re3-fd3cd2c26ac24fc104878cf80f59518ae51d2e8d.zip
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r--src/core/Cam.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 06e30ce9..b01572e9 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -3513,6 +3513,11 @@ CCam::Process_FlyBy(const CVector&, float, float, float)
if(TheCamera.m_bcutsceneFinished)
return;
+#ifdef FIX_BUGS
+ // this would crash, not nice when cycling debug mode
+ if(TheCamera.m_arrPathArray[0].m_arr_PathData == nil)
+ return;
+#endif
Up = CVector(0.0f, 0.0f, 1.0f);
if(TheCamera.m_bStartingSpline)