diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-10-27 04:17:30 +0100 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-10-27 04:17:30 +0100 |
commit | 537aaca5c200cb61928674303f7a24e3af29ad54 (patch) | |
tree | 6107f1e30d2392fb11df36d4902605810b4a6998 /src/core/Radar.cpp | |
parent | CGame::FinalShutdown (diff) | |
download | re3-537aaca5c200cb61928674303f7a24e3af29ad54.tar re3-537aaca5c200cb61928674303f7a24e3af29ad54.tar.gz re3-537aaca5c200cb61928674303f7a24e3af29ad54.tar.bz2 re3-537aaca5c200cb61928674303f7a24e3af29ad54.tar.lz re3-537aaca5c200cb61928674303f7a24e3af29ad54.tar.xz re3-537aaca5c200cb61928674303f7a24e3af29ad54.tar.zst re3-537aaca5c200cb61928674303f7a24e3af29ad54.zip |
Diffstat (limited to 'src/core/Radar.cpp')
-rw-r--r-- | src/core/Radar.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp index 0d6cbc82..f1dbb8b4 100644 --- a/src/core/Radar.cpp +++ b/src/core/Radar.cpp @@ -275,7 +275,7 @@ void CRadar::DrawBlips() TransformRadarPointToScreenSpace(out, in); float angle; - if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN1) + if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN) angle = PI + FindPlayerHeading(); #ifdef FIX_BUGS else if (TheCamera.GetLookDirection() != LOOKING_FORWARD) @@ -1081,14 +1081,14 @@ void CRadar::TransformRadarPointToRealWorldSpace(CVector2D &out, const CVector2D s = -Sin(TheCamera.GetForward().Heading()); c = Cos(TheCamera.GetForward().Heading()); - if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN1 || TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWNPED) { + if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN || TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOP_DOWN_PED) { s = 0.0f; c = 1.0f; } else if (TheCamera.GetLookDirection() != LOOKING_FORWARD) { CVector forward; - if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_FIRSTPERSON) { + if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_1STPERSON) { forward = TheCamera.Cams[TheCamera.ActiveCam].CamTargetEntity->GetForward(); forward.Normalise(); // a bit useless... } @@ -1120,7 +1120,7 @@ WRAPPER void CRadar::TransformRealWorldPointToRadarSpace(CVector2D &out, const C void CRadar::TransformRealWorldPointToRadarSpace(CVector2D &out, const CVector2D &in) { float s, c; - if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN1 || TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWNPED) { + if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOPDOWN || TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_TOP_DOWN_PED) { s = 0.0f; c = 1.0f; } @@ -1131,7 +1131,7 @@ void CRadar::TransformRealWorldPointToRadarSpace(CVector2D &out, const CVector2D else { CVector forward; - if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_FIRSTPERSON) { + if (TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_1STPERSON) { forward = TheCamera.Cams[TheCamera.ActiveCam].CamTargetEntity->GetForward(); forward.Normalise(); // a bit useless... } |