Core: Continued cleanup
If and for whitespaces.
This commit is contained in:
@@ -4920,9 +4920,9 @@ void ObjectMgr::LoadEventScripts()
|
||||
}
|
||||
}
|
||||
|
||||
for(size_t path_idx = 0; path_idx < sTaxiPathNodesByPath.size(); ++path_idx)
|
||||
for (size_t path_idx = 0; path_idx < sTaxiPathNodesByPath.size(); ++path_idx)
|
||||
{
|
||||
for(size_t node_idx = 0; node_idx < sTaxiPathNodesByPath[path_idx].size(); ++node_idx)
|
||||
for (size_t node_idx = 0; node_idx < sTaxiPathNodesByPath[path_idx].size(); ++node_idx)
|
||||
{
|
||||
TaxiPathNodeEntry const& node = sTaxiPathNodesByPath[path_idx][node_idx];
|
||||
|
||||
@@ -7199,7 +7199,7 @@ void ObjectMgr::LoadQuestPOI()
|
||||
int32 x = fields[2].GetInt32();
|
||||
int32 y = fields[3].GetInt32();
|
||||
|
||||
if(POIs[questId].size() <= id + 1)
|
||||
if (POIs[questId].size() <= id + 1)
|
||||
POIs[questId].resize(id + 10);
|
||||
|
||||
QuestPOIPoint point(x, y);
|
||||
@@ -8255,7 +8255,7 @@ void ObjectMgr::LoadMailLevelRewards()
|
||||
sLog->outString();
|
||||
}
|
||||
|
||||
void ObjectMgr::AddSpellToTrainer( uint32 entry, uint32 spell, uint32 spellCost, uint32 reqSkill, uint32 reqSkillValue, uint32 reqLevel)
|
||||
void ObjectMgr::AddSpellToTrainer(uint32 entry, uint32 spell, uint32 spellCost, uint32 reqSkill, uint32 reqSkillValue, uint32 reqLevel)
|
||||
{
|
||||
if (entry >= TRINITY_TRAINER_START_REF)
|
||||
return;
|
||||
@@ -8614,7 +8614,7 @@ bool ObjectMgr::RemoveVendorItem(uint32 entry, uint32 item, bool savetodb)
|
||||
if (iter == m_mCacheVendorItemMap.end())
|
||||
return false;
|
||||
|
||||
if(!iter->second.RemoveItem(item))
|
||||
if (!iter->second.RemoveItem(item))
|
||||
return false;
|
||||
|
||||
if (savetodb) WorldDatabase.PExecute("DELETE FROM npc_vendor WHERE entry='%u' AND item='%u'", entry, item);
|
||||
@@ -8692,7 +8692,7 @@ bool ObjectMgr::IsVendorItemValid(uint32 vendor_entry, uint32 item_id, int32 max
|
||||
if (pl)
|
||||
ChatHandler(pl).PSendSysMessage(LANG_ITEM_ALREADY_IN_LIST, item_id, ExtendedCost);
|
||||
else
|
||||
sLog->outErrorDb( "Table `npc_vendor` has duplicate items %u (with extended cost %u) for vendor (Entry: %u), ignoring", item_id, ExtendedCost, vendor_entry);
|
||||
sLog->outErrorDb("Table `npc_vendor` has duplicate items %u (with extended cost %u) for vendor (Entry: %u), ignoring", item_id, ExtendedCost, vendor_entry);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -648,7 +648,7 @@ class ObjectMgr
|
||||
ItemSetNameEntry const* GetItemSetNameEntry(uint32 itemId)
|
||||
{
|
||||
ItemSetNameMap::iterator itr = mItemSetNameMap.find(itemId);
|
||||
if(itr != mItemSetNameMap.end())
|
||||
if (itr != mItemSetNameMap.end())
|
||||
return &itr->second;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user