diff options
| author | Ovahlord <dreadkiller@gmx.de> | 2023-11-15 10:14:06 +0100 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2023-11-15 10:14:06 +0100 |
| commit | 6dcfeb3a85b126e5226debd00bfdf8a6913e15ac (patch) | |
| tree | 675511e4c46fc7f49cfb532c06a5f747cb210161 /src/server/game/Globals/ObjectMgr.cpp | |
| parent | d8b546707130b5fa81f73277c5fbd05e7e7cc2b9 (diff) | |
Core/Misc: duc tape build
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
| -rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index e882198834a..69ed68c6dd1 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -19,8 +19,6 @@ #include "ArenaTeamMgr.h" #include "AreaTriggerDataStore.h" #include "AreaTriggerTemplate.h" -#include "AzeriteEmpoweredItem.h" -#include "AzeriteItem.h" #include "Chat.h" #include "Containers.h" #include "CreatureAIFactory.h" @@ -3317,12 +3315,6 @@ void ObjectMgr::LoadItemTemplates() specs.set(); } - // Load item effects (spells) - for (ItemXItemEffectEntry const* effectEntry : sItemXItemEffectStore) - if (ItemTemplate* item = Trinity::Containers::MapGetValuePtr(_itemTemplateStore, effectEntry->ItemID)) - if (ItemEffectEntry const* effect = sItemEffectStore.LookupEntry(effectEntry->ItemEffectID)) - item->Effects.push_back(effect); - TC_LOG_INFO("server.loading", ">> Loaded {} item templates in {} ms", _itemTemplateStore.size(), GetMSTimeDiffToNow(oldMSTime)); } @@ -6405,8 +6397,6 @@ void ObjectMgr::ReturnOrDeleteOldMails(bool serverUp) for (MailItemInfoVec::iterator itr2 = m->items.begin(); itr2 != m->items.end(); ++itr2) { Item::DeleteFromDB(nonTransactional, itr2->item_guid); - AzeriteItem::DeleteFromDB(nonTransactional, itr2->item_guid); - AzeriteEmpoweredItem::DeleteFromDB(nonTransactional, itr2->item_guid); } stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_MAIL_ITEM_BY_ID); @@ -6938,8 +6928,7 @@ WorldSafeLocsEntry const* ObjectMgr::GetClosestGraveyardInZone(WorldLocation con // if find graveyard at different map from where entrance placed (or no entrance data), use any first if (!mapEntry || mapEntry->CorpseMapID < 0 - || uint32(mapEntry->CorpseMapID) != entry->Loc.GetMapId() - || (mapEntry->Corpse.X == 0 && mapEntry->Corpse.Y == 0)) // Check X and Y + || uint32(mapEntry->CorpseMapID) != entry->Loc.GetMapId()) // Check X and Y { // not have any corrdinates for check distance anyway entryFar = entry; @@ -6947,20 +6936,15 @@ WorldSafeLocsEntry const* ObjectMgr::GetClosestGraveyardInZone(WorldLocation con } // at entrance map calculate distance (2D); - float dist2 = (entry->Loc.GetPositionX() - mapEntry->Corpse.X) * (entry->Loc.GetPositionX() - mapEntry->Corpse.X) - + (entry->Loc.GetPositionY() - mapEntry->Corpse.Y) * (entry->Loc.GetPositionY() - mapEntry->Corpse.Y); if (foundEntr) { - if (dist2 < distEntr) - { - distEntr = dist2; - entryEntr = entry; - } + distEntr = 0.f; + entryEntr = entry; } else { foundEntr = true; - distEntr = dist2; + distEntr = 0.f; entryEntr = entry; } } |
