mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-16 22:44:08 +00:00
little CCam cleanup; fix in CWorld sphere test
This commit is contained in:
parent
5a961d0284
commit
41dac0773f
3 changed files with 37 additions and 29 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue