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 | 5e9ae94298c111c85a3ace292909c544b415f394 (diff) |
fixed look behind bug
Diffstat (limited to 'src')
-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; |