Core/Packets: converted SMSG_PARTY_MEMBER_STATE and SMSG_PARTY_MEMBER_FULL_STATE to packet class
* handle GROUP_UPDATE_FLAG_PHASE when changing phases * define and implement GROUP_UPDATE_FLAG_WMO_GROUP_ID
This commit is contained in:
1 parent
4f50bafd03
commit
c3831d30e5
15 files changed
+452
-409
No files matched your search
@@ -5875,6 +5875,8 @@ ActionButton const* Player::GetActionButton(uint8 button)
|
||||
|
||||
bool Player::UpdatePosition(float x, float y, float z, float orientation, bool teleport)
|
||||
{
|
||||
uint32 oldWmoGroupId = GetWMOGroupId();
|
||||
|
||||
if (!Unit::UpdatePosition(x, y, z, orientation, teleport))
|
||||
return false;
|
||||
|
||||
@@ -5893,10 +5895,17 @@ bool Player::UpdatePosition(float x, float y, float z, float orientation, bool t
|
||||
m_needsZoneUpdate = false;
|
||||
}
|
||||
|
||||
// group update
|
||||
// Add group update flags
|
||||
if (GetGroup())
|
||||
{
|
||||
// Position has changed
|
||||
SetGroupUpdateFlag(GROUP_UPDATE_FLAG_POSITION);
|
||||
|
||||
// Player is no longer on a WMO that belongs to the same area
|
||||
if (oldWmoGroupId != GetWMOGroupId())
|
||||
SetGroupUpdateFlag(GROUP_UPDATE_FLAG_WMO_GROUP_ID);
|
||||
}
|
||||
|
||||
CheckAreaExploreAndOutdoor();
|
||||
|
||||
// Update mount capabilities
|
||||
|
||||
Reference in new issue
Block a user