summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-10-17 14:33:22 +0200
committerSergeanur <s.anureev@yandex.ua>2020-10-17 14:33:22 +0200
commit516a02d2da990317fd59f5620487a289b373fe88 (patch)
tree93a6c0a435a63288251e2f1a2df591a5f34920e7
parentfix build (diff)
downloadre3-516a02d2da990317fd59f5620487a289b373fe88.tar
re3-516a02d2da990317fd59f5620487a289b373fe88.tar.gz
re3-516a02d2da990317fd59f5620487a289b373fe88.tar.bz2
re3-516a02d2da990317fd59f5620487a289b373fe88.tar.lz
re3-516a02d2da990317fd59f5620487a289b373fe88.tar.xz
re3-516a02d2da990317fd59f5620487a289b373fe88.tar.zst
re3-516a02d2da990317fd59f5620487a289b373fe88.zip
Diffstat (limited to '')
-rw-r--r--src/control/Pickups.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index 83b31f6b..78084624 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -745,7 +745,7 @@ void
CPickups::DoMineEffects(CEntity *entity)
{
const CVector &pos = entity->GetPosition();
- float dist = Distance2D(pos, TheCamera.GetPosition());
+ float dist = Distance(pos, TheCamera.GetPosition());
const float MAXDIST = 20.0f;
if (dist < MAXDIST) {
@@ -764,7 +764,7 @@ void
CPickups::DoMoneyEffects(CEntity *entity)
{
const CVector &pos = entity->GetPosition();
- float dist = Distance2D(pos, TheCamera.GetPosition());
+ float dist = Distance(pos, TheCamera.GetPosition());
const float MAXDIST = 20.0f;
if (dist < MAXDIST) {
@@ -783,7 +783,7 @@ void
CPickups::DoCollectableEffects(CEntity *entity)
{
const CVector &pos = entity->GetPosition();
- float dist = Distance2D(pos, TheCamera.GetPosition());
+ float dist = Distance(pos, TheCamera.GetPosition());
const float MAXDIST = 14.0f;
if (dist < MAXDIST) {