Remove some "_" from private methods as required by TC standards. Thanks to Shauren for pointing out.
This commit is contained in:
1 parent
0e65e94f40
commit
c8251bc619
10 files changed
+87
-88
No files matched your search
@@ -1630,10 +1630,10 @@ bool WorldObject::canSeeOrDetect(WorldObject const* obj, bool ignoreStealth, boo
|
||||
if (this == obj)
|
||||
return true;
|
||||
|
||||
if (obj->IsNeverVisible() || _CanNeverSee(obj))
|
||||
if (obj->IsNeverVisible() || CanNeverSee(obj))
|
||||
return false;
|
||||
|
||||
if (obj->IsAlwaysVisibleFor(this) || _CanAlwaysSee(obj))
|
||||
if (obj->IsAlwaysVisibleFor(this) || CanAlwaysSee(obj))
|
||||
return true;
|
||||
|
||||
bool corpseCheck = false;
|
||||
@@ -1690,13 +1690,13 @@ bool WorldObject::canSeeOrDetect(WorldObject const* obj, bool ignoreStealth, boo
|
||||
if (obj->IsInvisibleDueToDespawn())
|
||||
return false;
|
||||
|
||||
if (!_CanDetect(obj, ignoreStealth))
|
||||
if (!CanDetect(obj, ignoreStealth))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WorldObject::_CanDetect(WorldObject const* obj, bool ignoreStealth) const
|
||||
bool WorldObject::CanDetect(WorldObject const* obj, bool ignoreStealth) const
|
||||
{
|
||||
const WorldObject* seer = this;
|
||||
|
||||
@@ -1708,16 +1708,16 @@ bool WorldObject::_CanDetect(WorldObject const* obj, bool ignoreStealth) const
|
||||
if (obj->IsAlwaysDetectableFor(seer))
|
||||
return true;
|
||||
|
||||
if (!seer->_CanDetectInvisibilityOf(obj))
|
||||
if (!seer->CanDetectInvisibilityOf(obj))
|
||||
return false;
|
||||
|
||||
if (!ignoreStealth && !seer->_CanDetectStealthOf(obj))
|
||||
if (!ignoreStealth && !seer->CanDetectStealthOf(obj))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WorldObject::_CanDetectInvisibilityOf(WorldObject const* obj) const
|
||||
bool WorldObject::CanDetectInvisibilityOf(WorldObject const* obj) const
|
||||
{
|
||||
uint32 mask = obj->m_invisibility.GetFlags() & m_invisibilityDetect.GetFlags();
|
||||
|
||||
@@ -1748,7 +1748,7 @@ bool WorldObject::_CanDetectInvisibilityOf(WorldObject const* obj) const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WorldObject::_CanDetectStealthOf(WorldObject const* obj) const
|
||||
bool WorldObject::CanDetectStealthOf(WorldObject const* obj) const
|
||||
{
|
||||
// Combat reach is the minimal distance (both in front and behind),
|
||||
// and it is also used in the range calculation.
|
||||
|
||||
Reference in new issue
Block a user