summaryrefslogtreecommitdiffstats
path: root/src/core/Radar.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-02 17:02:45 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-02 17:02:45 +0200
commit7d067684ff4c69ecaf911ca23b478087f5655437 (patch)
treea47fbbaf7937616d80e799f3a9157d933c1f69c0 /src/core/Radar.cpp
parentchanged saving compatibility (diff)
parentA bit more audio cleanup (diff)
downloadre3-7d067684ff4c69ecaf911ca23b478087f5655437.tar
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.gz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.bz2
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.lz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.xz
re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.zst
re3-7d067684ff4c69ecaf911ca23b478087f5655437.zip
Diffstat (limited to 'src/core/Radar.cpp')
-rw-r--r--src/core/Radar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp
index 3d1429bd..b4c22068 100644
--- a/src/core/Radar.cpp
+++ b/src/core/Radar.cpp
@@ -524,7 +524,7 @@ void CRadar::DrawBlips()
} else {
#ifdef TRIANGULAR_BLIPS
CVector &pos = FindPlayerCentreOfWorld_NoSniperShift();
- CVector &blipPos = blipEntity->GetPosition();
+ const CVector &blipPos = blipEntity->GetPosition();
uint8 mode = BLIP_MODE_TRIANGULAR_UP;
if (blipPos.z - pos.z <= 2.0f) {
if (blipPos.z - pos.z < -4.0f) mode = BLIP_MODE_TRIANGULAR_DOWN;
@@ -630,7 +630,7 @@ void CRadar::DrawBlips()
#ifdef TRIANGULAR_BLIPS
{
CVector &pos = FindPlayerCentreOfWorld_NoSniperShift();
- CVector &blipPos = blipEntity->GetPosition();
+ const CVector &blipPos = blipEntity->GetPosition();
uint8 mode = BLIP_MODE_TRIANGULAR_UP;
if (blipPos.z - pos.z <= 2.0f) {
if (blipPos.z - pos.z < -4.0f) mode = BLIP_MODE_TRIANGULAR_DOWN;