mirror of
https://github.com/halpz/re3.git
synced 2025-07-17 18:18:13 +00:00
little CCam cleanup; fix in CWorld sphere test
This commit is contained in:
@ -949,7 +949,11 @@ CWorld::TestSphereAgainstSectorList(CPtrList &list, CVector spherePos, float rad
|
||||
|
||||
if(e != entityToIgnore && e->bUsesCollision &&
|
||||
!(ignoreSomeObjects && CameraToIgnoreThisObject(e))) {
|
||||
#ifdef FIX_BUGS
|
||||
CVector diff = spherePos - e->GetBoundCentre();
|
||||
#else
|
||||
CVector diff = spherePos - e->GetPosition();
|
||||
#endif
|
||||
float distance = diff.Magnitude();
|
||||
|
||||
if(e->GetBoundRadius() + radius > distance) {
|
||||
|
Reference in New Issue
Block a user