mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7129] Changed uint64 results to const uint64& on some methods.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
03b7d1006a
commit
a92354afed
4 changed files with 7 additions and 7 deletions
|
|
@ -707,7 +707,7 @@ void WorldSession::BuildPartyMemberStatsChangedPacket(Player *player, WorldPacke
|
||||||
|
|
||||||
if (mask & GROUP_UPDATE_FLAG_AURAS)
|
if (mask & GROUP_UPDATE_FLAG_AURAS)
|
||||||
{
|
{
|
||||||
uint64 auramask = player->GetAuraUpdateMask();
|
const uint64& auramask = player->GetAuraUpdateMask();
|
||||||
*data << uint64(auramask);
|
*data << uint64(auramask);
|
||||||
for(uint32 i = 0; i < MAX_AURAS; ++i)
|
for(uint32 i = 0; i < MAX_AURAS; ++i)
|
||||||
{
|
{
|
||||||
|
|
@ -788,7 +788,7 @@ void WorldSession::BuildPartyMemberStatsChangedPacket(Player *player, WorldPacke
|
||||||
{
|
{
|
||||||
if(pet)
|
if(pet)
|
||||||
{
|
{
|
||||||
uint64 auramask = pet->GetAuraUpdateMask();
|
const uint64& auramask = pet->GetAuraUpdateMask();
|
||||||
*data << uint64(auramask);
|
*data << uint64(auramask);
|
||||||
for(uint32 i = 0; i < MAX_AURAS; ++i)
|
for(uint32 i = 0; i < MAX_AURAS; ++i)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ class Pet : public Creature
|
||||||
time_t m_resetTalentsTime;
|
time_t m_resetTalentsTime;
|
||||||
uint32 m_usedTalentCount;
|
uint32 m_usedTalentCount;
|
||||||
|
|
||||||
uint64 GetAuraUpdateMask() { return m_auraUpdateMask; }
|
const uint64& GetAuraUpdateMask() const { return m_auraUpdateMask; }
|
||||||
void SetAuraUpdateMask(uint8 slot) { m_auraUpdateMask |= (uint64(1) << slot); }
|
void SetAuraUpdateMask(uint8 slot) { m_auraUpdateMask |= (uint64(1) << slot); }
|
||||||
void ResetAuraUpdateMask() { m_auraUpdateMask = 0; }
|
void ResetAuraUpdateMask() { m_auraUpdateMask = 0; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1418,7 +1418,7 @@ class MANGOS_DLL_SPEC Player : public Unit
|
||||||
void SetSelection(const uint64 &guid) { m_curSelection = guid; SetUInt64Value(UNIT_FIELD_TARGET, guid); }
|
void SetSelection(const uint64 &guid) { m_curSelection = guid; SetUInt64Value(UNIT_FIELD_TARGET, guid); }
|
||||||
|
|
||||||
uint8 GetComboPoints() { return m_comboPoints; }
|
uint8 GetComboPoints() { return m_comboPoints; }
|
||||||
uint64 GetComboTarget() { return m_comboTarget; }
|
const uint64& GetComboTarget() const { return m_comboTarget; }
|
||||||
|
|
||||||
void AddComboPoints(Unit* target, int8 count);
|
void AddComboPoints(Unit* target, int8 count);
|
||||||
void ClearComboPoints();
|
void ClearComboPoints();
|
||||||
|
|
@ -2150,9 +2150,9 @@ class MANGOS_DLL_SPEC Player : public Unit
|
||||||
GroupReference& GetGroupRef() { return m_group; }
|
GroupReference& GetGroupRef() { return m_group; }
|
||||||
void SetGroup(Group *group, int8 subgroup = -1);
|
void SetGroup(Group *group, int8 subgroup = -1);
|
||||||
uint8 GetSubGroup() const { return m_group.getSubGroup(); }
|
uint8 GetSubGroup() const { return m_group.getSubGroup(); }
|
||||||
uint32 GetGroupUpdateFlag() { return m_groupUpdateMask; }
|
uint32 GetGroupUpdateFlag() const { return m_groupUpdateMask; }
|
||||||
void SetGroupUpdateFlag(uint32 flag) { m_groupUpdateMask |= flag; }
|
void SetGroupUpdateFlag(uint32 flag) { m_groupUpdateMask |= flag; }
|
||||||
uint64 GetAuraUpdateMask() { return m_auraUpdateMask; }
|
const uint64& GetAuraUpdateMask() const { return m_auraUpdateMask; }
|
||||||
void SetAuraUpdateMask(uint8 slot) { m_auraUpdateMask |= (uint64(1) << slot); }
|
void SetAuraUpdateMask(uint8 slot) { m_auraUpdateMask |= (uint64(1) << slot); }
|
||||||
Player* GetNextRandomRaidMember(float radius);
|
Player* GetNextRandomRaidMember(float radius);
|
||||||
PartyResult CanUninviteFromGroup() const;
|
PartyResult CanUninviteFromGroup() const;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7128"
|
#define REVISION_NR "7129"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue