fix(Core/Objects): LoS calculation (#5084)
This commit is contained in:
parent
3a4b99213a
commit
ae7b452fdf
1 changed files with 1 additions and 1 deletions
|
|
@ -1184,7 +1184,7 @@ bool WorldObject::IsWithinLOSInMap(const WorldObject* obj, LineOfSightChecks che
|
|||
if (obj->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
obj->GetPosition(ox, oy, oz);
|
||||
oz += GetCollisionHeight();
|
||||
oz += obj->GetCollisionHeight();
|
||||
}
|
||||
else
|
||||
obj->GetHitSpherePointFor({ GetPositionX(), GetPositionY(), GetPositionZ() + GetCollisionHeight() }, ox, oy, oz);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue