summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-06 01:42:22 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-06 01:42:22 +0200
commitfe2ae13c80024e5167abbbbb6ab130126ab26951 (patch)
tree03d9758ae66e87e0163f07f21f761438fda592f9 /src
parentFixed CCamera::SetWideScreenOff dupe, removed goto in CStreaming::RetryLoadFile (diff)
downloadre3-fe2ae13c80024e5167abbbbb6ab130126ab26951.tar
re3-fe2ae13c80024e5167abbbbb6ab130126ab26951.tar.gz
re3-fe2ae13c80024e5167abbbbb6ab130126ab26951.tar.bz2
re3-fe2ae13c80024e5167abbbbb6ab130126ab26951.tar.lz
re3-fe2ae13c80024e5167abbbbb6ab130126ab26951.tar.xz
re3-fe2ae13c80024e5167abbbbb6ab130126ab26951.tar.zst
re3-fe2ae13c80024e5167abbbbb6ab130126ab26951.zip
Diffstat (limited to '')
-rw-r--r--src/core/Radar.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp
index ebb71f5f..0d6cbc82 100644
--- a/src/core/Radar.cpp
+++ b/src/core/Radar.cpp
@@ -277,6 +277,10 @@ void CRadar::DrawBlips()
float angle;
if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN1)
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
angle = FindPlayerHeading() - (PI + TheCamera.GetForward().Heading());