diff options
author | aap <aap@papnet.eu> | 2020-04-05 15:27:30 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-05 15:27:30 +0200 |
commit | 27f95d905c7af21183bfa4fbf4bc64a0176a7464 (patch) | |
tree | c5db7da158ee1240bc1c093a693843d39e1ad85b /src | |
parent | Merge pull request #378 from aap/master (diff) | |
download | re3-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 '')
-rw-r--r-- | src/core/Cam.cpp | 2 |
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; |