diff options
author | maximius <none@none> | 2009-11-21 17:59:24 -0800 |
---|---|---|
committer | maximius <none@none> | 2009-11-21 17:59:24 -0800 |
commit | c767576d929dff04ea3f2d59624a612cc6fb934c (patch) | |
tree | 1db1cb2744d1c73c930a397596b5f6b618105f37 /src/game/LootMgr.cpp | |
parent | b039a7586e76ad5cdb7d128ff9bcc3b8946e50b9 (diff) |
*Cleanup, more consistant HandleDummyAuraProc code (added basepoints1 and basepoints2 and edited some spell cases to use these instead of more hacky custom methods..)
--HG--
branch : trunk
Diffstat (limited to 'src/game/LootMgr.cpp')
-rw-r--r-- | src/game/LootMgr.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp index e6be1e10206..f791a86e103 100644 --- a/src/game/LootMgr.cpp +++ b/src/game/LootMgr.cpp @@ -1149,11 +1149,11 @@ void LoadLootTemplates_Creature() // remove real entries and check existence loot for (uint32 i = 1; i < sCreatureStorage.MaxEntry; ++i) { - if(CreatureInfo const* cInfo = sCreatureStorage.LookupEntry<CreatureInfo>(i)) + if (CreatureInfo const* cInfo = sCreatureStorage.LookupEntry<CreatureInfo>(i)) { - if(uint32 lootid = cInfo->lootid) + if (uint32 lootid = cInfo->lootid) { - if(!ids_set.count(lootid)) + if (!ids_set.count(lootid)) LootTemplates_Creature.ReportNotExistedId(lootid); else ids_setUsed.insert(lootid); @@ -1240,8 +1240,8 @@ void LoadLootTemplates_Item() // remove real entries and check existence loot for (uint32 i = 1; i < sItemStorage.MaxEntry; ++i) - if(ItemPrototype const *proto = sItemStorage.LookupEntry<ItemPrototype>(i)) - if(ids_set.count(proto->ItemId)) + if (ItemPrototype const *proto = sItemStorage.LookupEntry<ItemPrototype>(i)) + if (ids_set.count(proto->ItemId)) ids_set.erase(proto->ItemId); // output error for any still listed (not referenced from appropriate table) ids @@ -1257,13 +1257,13 @@ void LoadLootTemplates_Milling() for (uint32 i = 1; i < sItemStorage.MaxEntry; ++i) { ItemPrototype const *proto = sItemStorage.LookupEntry<ItemPrototype>(i); - if(!proto) + if (!proto) continue; - if((proto->BagFamily & BAG_FAMILY_MASK_HERBS) == 0) + if ((proto->BagFamily & BAG_FAMILY_MASK_HERBS) == 0) continue; - if(ids_set.count(proto->ItemId)) + if (ids_set.count(proto->ItemId)) ids_set.erase(proto->ItemId); } |