Compile fix try
This commit is contained in:
1 parent
0c97c46361
commit
b7432bc39a
11 files changed
+63
-42
No files matched your search
@@ -473,8 +473,8 @@ Player::Player(WorldSession* session): Unit(true)
|
||||
// Player summoning
|
||||
m_summon_expire = 0;
|
||||
|
||||
m_mover = this;
|
||||
m_movedPlayer = this;
|
||||
m_unitMovedByMe = this;
|
||||
m_playerMovingMe = this;
|
||||
m_seer = this;
|
||||
|
||||
|
||||
@@ -22764,7 +22764,7 @@ bool Player::IsNeverVisible() const
|
||||
bool Player::CanAlwaysSee(WorldObject const* obj) const
|
||||
{
|
||||
// Always can see self
|
||||
if (m_mover == obj)
|
||||
if (m_unitMovedByMe == obj)
|
||||
return true;
|
||||
|
||||
if (ObjectGuid guid = GetGuidValue(PLAYER_FARSIGHT))
|
||||
@@ -23063,10 +23063,10 @@ void Player::SendComboPoints()
|
||||
if (combotarget)
|
||||
{
|
||||
WorldPacket data;
|
||||
if (m_mover != this)
|
||||
if (m_unitMovedByMe != this)
|
||||
{
|
||||
data.Initialize(SMSG_PET_UPDATE_COMBO_POINTS, m_mover->GetPackGUID().size()+combotarget->GetPackGUID().size()+1);
|
||||
data << m_mover->GetPackGUID();
|
||||
data.Initialize(SMSG_PET_UPDATE_COMBO_POINTS, m_unitMovedByMe->GetPackGUID().size()+combotarget->GetPackGUID().size()+1);
|
||||
data << m_unitMovedByMe->GetPackGUID();
|
||||
}
|
||||
else
|
||||
data.Initialize(SMSG_UPDATE_COMBO_POINTS, combotarget->GetPackGUID().size()+1);
|
||||
@@ -24420,9 +24420,9 @@ void Player::SetClientControl(Unit* target, bool allowMove)
|
||||
|
||||
void Player::SetMover(Unit* target)
|
||||
{
|
||||
m_mover->m_movedPlayer = nullptr;
|
||||
m_mover = target;
|
||||
m_mover->m_movedPlayer = this;
|
||||
m_unitMovedByMe->m_playerMovingMe = nullptr;
|
||||
m_unitMovedByMe = target;
|
||||
m_unitMovedByMe->m_playerMovingMe = this;
|
||||
|
||||
ObjectGuid guid = target->GetGUID();
|
||||
|
||||
|
||||
Reference in new issue
Block a user