diff options
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) { |