1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 15:20:00 +00:00

fixed look behind bug

This commit is contained in:
aap 2020-04-05 15:27:30 +02:00
parent 5e9ae94298
commit 27f95d905c

View file

@ -627,7 +627,7 @@ CCam::LookBehind(void)
DeltaBeta = TargetOrientation - Beta; DeltaBeta = TargetOrientation - Beta;
while(DeltaBeta >= PI) DeltaBeta -= 2*PI; while(DeltaBeta >= PI) DeltaBeta -= 2*PI;
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; LookBehindCamWasInFront = DeltaBeta <= -HALFPI || DeltaBeta >= HALFPI;
if(LookBehindCamWasInFront) if(LookBehindCamWasInFront)
TargetOrientation += PI; TargetOrientation += PI;