mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10627] Use ObjectGuid for player's selection and unit's target
This commit is contained in:
parent
e74d56f9d2
commit
c955941b55
21 changed files with 66 additions and 73 deletions
|
|
@ -430,9 +430,6 @@ Player::Player (WorldSession *session): Unit(), m_mover(this), m_camera(this), m
|
|||
if(GetSession()->GetSecurity() == SEC_PLAYER)
|
||||
SetAcceptWhispers(true);
|
||||
|
||||
m_curSelection = 0;
|
||||
m_lootGuid = 0;
|
||||
|
||||
m_comboTarget = 0;
|
||||
m_comboPoints = 0;
|
||||
|
||||
|
|
@ -1840,7 +1837,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
|||
return true;
|
||||
}
|
||||
|
||||
SetSelection(0);
|
||||
SetSelectionGuid(ObjectGuid());
|
||||
|
||||
CombatStop();
|
||||
|
||||
|
|
@ -15365,7 +15362,7 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
|
|||
// clear charm/summon related fields
|
||||
SetCharm(NULL);
|
||||
SetPet(NULL);
|
||||
SetTargetGUID(0);
|
||||
SetTargetGuid(ObjectGuid());
|
||||
SetChannelObjectGUID(0);
|
||||
SetCharmerGUID(0);
|
||||
SetOwnerGUID(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue