mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
Some code cleanup.
This commit is contained in:
parent
d5f638b8c8
commit
65229fcf4e
32 changed files with 107 additions and 91 deletions
|
|
@ -8859,7 +8859,7 @@ bool Unit::IsVisibleForOrDetect(Unit const* u, WorldObject const* viewPoint, boo
|
|||
float visibleDistance = (u->GetTypeId() == TYPEID_PLAYER) ? MAX_PLAYER_STEALTH_DETECT_RANGE : ((Creature const*)u)->GetAttackDistance(this);
|
||||
|
||||
// Always invisible from back (when stealth detection is on), also filter max distance cases
|
||||
bool isInFront = viewPoint->isInFrontInMap(this, visibleDistance);
|
||||
bool isInFront = viewPoint->IsInFrontInMap(this, visibleDistance);
|
||||
if (!isInFront)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue