summaryrefslogtreecommitdiffstats
path: root/src/core/World.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-15 16:44:47 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-15 16:44:47 +0200
commit655eaa36ce4dfbe3c8f7d46097d87d513a384b5f (patch)
treeaa16b934b8623fa16e0dcc149069a5e55115a345 /src/core/World.cpp
parentFix vehicle cam. zoom values (diff)
parentmore cleanup (diff)
downloadre3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.gz
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.bz2
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.lz
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.xz
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.zst
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.zip
Diffstat (limited to 'src/core/World.cpp')
-rw-r--r--src/core/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index a44d3efc..8399161f 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -941,7 +941,7 @@ CWorld::TestSphereAgainstSectorList(CPtrList &list, CVector spherePos, float rad
if(e != entityToIgnore && e->bUsesCollision &&
!(ignoreSomeObjects && CameraToIgnoreThisObject(e))) {
- CVector diff = spherePos - e->GetPosition();
+ CVector diff = spherePos - e->GetBoundCentre();
float distance = diff.Magnitude();
if(e->GetBoundRadius() + radius > distance) {