Core/Players: Fixed players getting stuck on loading screen when jumping through a portal
This commit is contained in:
1 parent
e211d1bfe1
commit
71386a5b2c
2 files changed
+10
-3
No files matched your search
@@ -16910,15 +16910,19 @@ void Unit::BuildValuesUpdate(uint8 updateType, ByteBuffer* data, Player* target)
|
||||
return;
|
||||
|
||||
ByteBuffer fieldBuffer;
|
||||
|
||||
UpdateMask updateMask;
|
||||
updateMask.SetCount(m_valuesCount);
|
||||
|
||||
uint32 valCount = m_valuesCount;
|
||||
|
||||
uint32* flags = UnitUpdateFieldFlags;
|
||||
uint32 visibleFlag = UF_FLAG_PUBLIC;
|
||||
|
||||
if (target == this)
|
||||
visibleFlag |= UF_FLAG_PRIVATE;
|
||||
else if (GetTypeId() == TYPEID_PLAYER)
|
||||
valCount = PLAYER_END_NOT_SELF;
|
||||
|
||||
updateMask.SetCount(valCount);
|
||||
|
||||
Player* plr = GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||
if (GetOwnerGUID() == target->GetGUID())
|
||||
@@ -16932,7 +16936,7 @@ void Unit::BuildValuesUpdate(uint8 updateType, ByteBuffer* data, Player* target)
|
||||
visibleFlag |= UF_FLAG_PARTY_MEMBER;
|
||||
|
||||
Creature const* creature = ToCreature();
|
||||
for (uint16 index = 0; index < m_valuesCount; ++index)
|
||||
for (uint16 index = 0; index < valCount; ++index)
|
||||
{
|
||||
if (_fieldNotifyFlags & flags[index] ||
|
||||
((flags[index] & visibleFlag) & UF_FLAG_SPECIAL_INFO) ||
|
||||
|
||||
Reference in new issue
Block a user