Core: Codestyle cleanup
This commit is contained in:
@@ -122,7 +122,7 @@ class ObjectAccessor
|
||||
// Player may be not in world while in ObjectAccessor
|
||||
static Player* GetObjectInWorld(uint64 guid, Player* /*typeSpecifier*/)
|
||||
{
|
||||
Player * player = HashMapHolder<Player>::Find(guid);
|
||||
Player* player = HashMapHolder<Player>::Find(guid);
|
||||
if (player && player->IsInWorld())
|
||||
return player;
|
||||
return NULL;
|
||||
|
||||
@@ -222,7 +222,7 @@ bool SpellClickInfo::IsFitToRequirements(Unit const* clicker, Unit const* clicke
|
||||
if (clicker->HasAura(auraForbidden))
|
||||
return false;
|
||||
|
||||
Unit const * summoner = NULL;
|
||||
Unit const* summoner = NULL;
|
||||
// Check summoners for party
|
||||
if (clickee->isSummon())
|
||||
summoner = clickee->ToTempSummon()->GetSummoner();
|
||||
@@ -987,7 +987,7 @@ void ObjectMgr::LoadCreatureAddons()
|
||||
sLog->outString();
|
||||
}
|
||||
|
||||
CreatureAddon const * ObjectMgr::GetCreatureAddon(uint32 lowguid)
|
||||
CreatureAddon const* ObjectMgr::GetCreatureAddon(uint32 lowguid)
|
||||
{
|
||||
CreatureAddonContainer::const_iterator itr = CreatureAddonStore.find(lowguid);
|
||||
if (itr != CreatureAddonStore.end())
|
||||
@@ -996,7 +996,7 @@ CreatureAddon const * ObjectMgr::GetCreatureAddon(uint32 lowguid)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
CreatureAddon const * ObjectMgr::GetCreatureTemplateAddon(uint32 entry)
|
||||
CreatureAddon const* ObjectMgr::GetCreatureTemplateAddon(uint32 entry)
|
||||
{
|
||||
CreatureAddonContainer::const_iterator itr = CreatureTemplateAddonStore.find(entry);
|
||||
if (itr != CreatureTemplateAddonStore.end())
|
||||
@@ -4906,7 +4906,7 @@ void ObjectMgr::LoadEventScripts()
|
||||
// Load all possible script entries from spells
|
||||
for (uint32 i = 1; i < sSpellStore.GetNumRows(); ++i)
|
||||
{
|
||||
SpellEntry const * spell = sSpellStore.LookupEntry(i);
|
||||
SpellEntry const* spell = sSpellStore.LookupEntry(i);
|
||||
if (spell)
|
||||
{
|
||||
for (uint8 j = 0; j < MAX_SPELL_EFFECTS; ++j)
|
||||
@@ -5048,7 +5048,7 @@ void ObjectMgr::ValidateSpellScripts()
|
||||
|
||||
for (SpellScriptsMap::iterator itr = mSpellScripts.begin(); itr != mSpellScripts.end();)
|
||||
{
|
||||
SpellEntry const * spellEntry = sSpellStore.LookupEntry(itr->first);
|
||||
SpellEntry const* spellEntry = sSpellStore.LookupEntry(itr->first);
|
||||
std::vector<std::pair<SpellScriptLoader *, SpellScriptsMap::iterator> > SpellScriptLoaders;
|
||||
sScriptMgr->CreateSpellScriptLoaders(itr->first, SpellScriptLoaders);
|
||||
itr = mSpellScripts.upper_bound(itr->first);
|
||||
|
||||
@@ -348,7 +348,7 @@ struct SpellClickInfo
|
||||
SpellClickUserTypes userType;
|
||||
|
||||
// helpers
|
||||
bool IsFitToRequirements(Unit const* clicker, Unit const * clickee) const;
|
||||
bool IsFitToRequirements(Unit const* clicker, Unit const* clickee) const;
|
||||
};
|
||||
|
||||
typedef std::multimap<uint32, SpellClickInfo> SpellClickInfoMap;
|
||||
|
||||
Reference in New Issue
Block a user