diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-09 00:08:42 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-09 00:08:42 +0300 |
commit | c851d9a6baa96ca404e416c4de12845839c72290 (patch) | |
tree | 3f115a97c2640f7af732002b99fa85ee17389de3 /src/core | |
parent | c5af250959d9ff2b1438fc89ddfa7a1c24b069e4 (diff) | |
parent | 3869369703bce622ce9d44b71a08af4b62d700e3 (diff) |
Merge branch 'miami' into lcs
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Camera.cpp | 2 | ||||
-rw-r--r-- | src/core/Camera.h | 2 | ||||
-rw-r--r-- | src/core/Radar.cpp | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp index 526f0015..6e632c7c 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -4078,7 +4078,7 @@ CCamera::IsPointVisible(const CVector ¢er, const CMatrix *mat) } bool -CCamera::IsSphereVisible(const CVector ¢er, float radius, Const CMatrix *mat) +CCamera::IsSphereVisible(const CVector ¢er, float radius, const CMatrix *mat) { #ifdef GTA_PS2 CVuVector c; diff --git a/src/core/Camera.h b/src/core/Camera.h index 3468f6d6..66a89f21 100644 --- a/src/core/Camera.h +++ b/src/core/Camera.h @@ -632,7 +632,7 @@ public: CVector &GetGameCamPosition(void) { return m_vecGameCamPos; } void CalculateDerivedValues(void); bool IsPointVisible(const CVector ¢er, const CMatrix *mat); - bool IsSphereVisible(const CVector ¢er, float radius, Const CMatrix *mat); + bool IsSphereVisible(const CVector ¢er, float radius, const CMatrix *mat); bool IsSphereVisible(const CVector ¢er, float radius); bool IsBoxVisible(CVUVECTOR *box, const CMatrix *mat); }; diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp index 8d454d34..2a56598a 100644 --- a/src/core/Radar.cpp +++ b/src/core/Radar.cpp @@ -1058,9 +1058,11 @@ INITSAVEBUF WriteSaveHeader(buf, 'R', 'D', 'R', '\0', *size - SAVE_HEADER_SIZE); #ifdef MAP_ENHANCEMENTS + bool bWaypointDeleted = false; if (TargetMarkerId != -1) { ClearBlip(TargetMarkerId); TargetMarkerId = -1; + bWaypointDeleted = true; } #endif @@ -1085,6 +1087,11 @@ INITSAVEBUF SkipSaveBuf(buf, sizeof(sRadarTraceSave)); } +#ifdef MAP_ENHANCEMENTS + if(bWaypointDeleted) + ToggleTargetMarker(TargetMarkerPos.x, TargetMarkerPos.y); +#endif + VALIDATESAVEBUF(*size); } |