mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 13:37:02 +00:00
[12026] Replace std containers of ObjectGuids with some predefined types
Based on patch by stfx Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
b607d6a3fd
commit
0e0a765312
27 changed files with 57 additions and 68 deletions
|
|
@ -20079,13 +20079,13 @@ void Player::UpdateVisibilityOf(WorldObject const* viewPoint, WorldObject* targe
|
|||
}
|
||||
|
||||
template<class T>
|
||||
inline void UpdateVisibilityOf_helper(ObjectGuidSet& s64, T* target)
|
||||
inline void UpdateVisibilityOf_helper(GuidSet& s64, T* target)
|
||||
{
|
||||
s64.insert(target->GetObjectGuid());
|
||||
}
|
||||
|
||||
template<>
|
||||
inline void UpdateVisibilityOf_helper(ObjectGuidSet& s64, GameObject* target)
|
||||
inline void UpdateVisibilityOf_helper(GuidSet& s64, GameObject* target)
|
||||
{
|
||||
if(!target->IsTransport())
|
||||
s64.insert(target->GetObjectGuid());
|
||||
|
|
@ -20782,7 +20782,7 @@ void Player::UpdateForQuestWorldObjects()
|
|||
|
||||
UpdateData udata;
|
||||
WorldPacket packet;
|
||||
for(ObjectGuidSet::const_iterator itr=m_clientGUIDs.begin(); itr!=m_clientGUIDs.end(); ++itr)
|
||||
for(GuidSet::const_iterator itr=m_clientGUIDs.begin(); itr!=m_clientGUIDs.end(); ++itr)
|
||||
{
|
||||
if (itr->IsGameObject())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue