mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2025-01-25 16:21:11 +01:00
fixed bug in CPed
This commit is contained in:
parent
f9e7e9c3c3
commit
b19e1d369c
@ -509,11 +509,11 @@ CPed::OurPedCanSeeThisOne(CEntity *target)
|
|||||||
|
|
||||||
// Check if target is behind ped
|
// Check if target is behind ped
|
||||||
if (DotProduct2D(dist, CVector2D(this->GetForward())) < 0.0f)
|
if (DotProduct2D(dist, CVector2D(this->GetForward())) < 0.0f)
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
// Check if target is too far away
|
// Check if target is too far away
|
||||||
if (dist.Magnitude() < 40.0f)
|
if (dist.Magnitude() >= 40.0f)
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
// Check line of sight from head
|
// Check line of sight from head
|
||||||
CVector headPos = this->GetPosition();
|
CVector headPos = this->GetPosition();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user