diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-06-15 16:44:47 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-06-15 16:44:47 +0200 |
commit | 655eaa36ce4dfbe3c8f7d46097d87d513a384b5f (patch) | |
tree | aa16b934b8623fa16e0dcc149069a5e55115a345 /src/core/World.cpp | |
parent | Fix vehicle cam. zoom values (diff) | |
parent | more cleanup (diff) | |
download | re3-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.cpp | 2 |
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) { |