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

Fixed player blip heading when looking left/right/behind

This commit is contained in:
Sergeanur 2019-10-06 02:42:22 +03:00
parent 96eee4f10f
commit fe2ae13c80

View file

@ -277,6 +277,10 @@ void CRadar::DrawBlips()
float angle; float angle;
if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN1) if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN1)
angle = PI + FindPlayerHeading(); angle = PI + FindPlayerHeading();
#ifdef FIX_BUGS
else if (TheCamera.GetLookDirection() != LOOKING_FORWARD)
angle = FindPlayerHeading() - (PI + (TheCamera.Cams[TheCamera.ActiveCam].CamTargetEntity->GetPosition() - TheCamera.Cams[TheCamera.ActiveCam].SourceBeforeLookBehind).Heading());
#endif
else else
angle = FindPlayerHeading() - (PI + TheCamera.GetForward().Heading()); angle = FindPlayerHeading() - (PI + TheCamera.GetForward().Heading());