summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-05 15:27:30 +0200
committeraap <aap@papnet.eu>2020-04-05 15:27:30 +0200
commit27f95d905c7af21183bfa4fbf4bc64a0176a7464 (patch)
treec5db7da158ee1240bc1c093a693843d39e1ad85b /src/core/Cam.cpp
parentMerge pull request #378 from aap/master (diff)
downloadre3-27f95d905c7af21183bfa4fbf4bc64a0176a7464.tar
re3-27f95d905c7af21183bfa4fbf4bc64a0176a7464.tar.gz
re3-27f95d905c7af21183bfa4fbf4bc64a0176a7464.tar.bz2
re3-27f95d905c7af21183bfa4fbf4bc64a0176a7464.tar.lz
re3-27f95d905c7af21183bfa4fbf4bc64a0176a7464.tar.xz
re3-27f95d905c7af21183bfa4fbf4bc64a0176a7464.tar.zst
re3-27f95d905c7af21183bfa4fbf4bc64a0176a7464.zip
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r--src/core/Cam.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index b9e8e94e..5b7a53e9 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -627,7 +627,7 @@ CCam::LookBehind(void)
DeltaBeta = TargetOrientation - Beta;
while(DeltaBeta >= PI) DeltaBeta -= 2*PI;
while(DeltaBeta < -PI) DeltaBeta += 2*PI;
- if(DirectionWasLooking == LOOKING_BEHIND)
+ if(DirectionWasLooking != LOOKING_BEHIND)
LookBehindCamWasInFront = DeltaBeta <= -HALFPI || DeltaBeta >= HALFPI;
if(LookBehindCamWasInFront)
TargetOrientation += PI;