diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-02 15:28:19 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-02 15:28:19 +0300 |
commit | 52390062b39a3398379934e59a15faa01613e586 (patch) | |
tree | ba7c8c16921d09a9ec1e2d33323ab142048a3290 /src/core/Radar.cpp | |
parent | d23b2c423e5811cf6e9de28cbf8490de32ea4fb5 (diff) |
SetPosition, part 2
Diffstat (limited to 'src/core/Radar.cpp')
-rw-r--r-- | src/core/Radar.cpp | 4 |
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; |