mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
fixed look behind bug
This commit is contained in:
parent
5e9ae94298
commit
27f95d905c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user