REPO: Code-style clean-ups
* Fixed pMap->map * Fixed pInstance->instance * Fixed pInsta->instance * Fixed pQuest->quest * Fixed pWho->who * Fixed pTarget->target * Fixed pGo->go ~DEVNOTES: Handlers/QuestHandler.cpp still needs to be cleaned...
This commit is contained in:
@@ -1025,11 +1025,12 @@ namespace Trinity
|
||||
return false;
|
||||
|
||||
if (m_force)
|
||||
{
|
||||
if (!me->IsValidAttackTarget(u))
|
||||
return false;
|
||||
else
|
||||
if (!me->canStartAttack(u, false))
|
||||
return false;
|
||||
}
|
||||
else if (!me->canStartAttack(u, false))
|
||||
return false;
|
||||
|
||||
m_range = me->GetDistance(u); // use found unit range as new range limit for next check
|
||||
return true;
|
||||
@@ -1196,9 +1197,9 @@ namespace Trinity
|
||||
{
|
||||
public:
|
||||
AllGameObjectsWithEntryInRange(const WorldObject* pObject, uint32 uiEntry, float fMaxRange) : m_pObject(pObject), m_uiEntry(uiEntry), m_fRange(fMaxRange) {}
|
||||
bool operator() (GameObject* pGo)
|
||||
bool operator() (GameObject* go)
|
||||
{
|
||||
if (pGo->GetEntry() == m_uiEntry && m_pObject->IsWithinDist(pGo, m_fRange, false))
|
||||
if (go->GetEntry() == m_uiEntry && m_pObject->IsWithinDist(go, m_fRange, false))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
@@ -1265,9 +1266,9 @@ namespace Trinity
|
||||
{
|
||||
public:
|
||||
AllWorldObjectsInRange(const WorldObject* pObject, float fMaxRange) : m_pObject(pObject), m_fRange(fMaxRange) {}
|
||||
bool operator() (WorldObject* pGo)
|
||||
bool operator() (WorldObject* go)
|
||||
{
|
||||
return m_pObject->IsWithinDist(pGo, m_fRange, false);
|
||||
return m_pObject->IsWithinDist(go, m_fRange, false);
|
||||
}
|
||||
private:
|
||||
const WorldObject* m_pObject;
|
||||
|
||||
Reference in New Issue
Block a user