Fixed one build error and performance warnings

This commit is contained in:
Flameshot
2017-02-04 16:34:09 +02:00
parent b083a07dfa
commit 30732ecc5d
4 changed files with 4 additions and 4 deletions

View File

@@ -2797,7 +2797,7 @@ void Unit::_UpdateAutoRepeatSpell()
// check "realtime" interrupts
// don't cancel spells which are affected by a SPELL_AURA_CAST_WHILE_WALKING effect
if ((GetTypeId() == TYPEID_PLAYER && ToPlayer()->isMoving()) || IsNonMeleeSpellCast(false, false, true, autoRepeatSpellInfo->Id == 75)) &&
if (((GetTypeId() == TYPEID_PLAYER && ToPlayer()->isMoving()) || IsNonMeleeSpellCast(false, false, true, autoRepeatSpellInfo->Id == 75)) &&
!HasAuraTypeWithAffectMask(SPELL_AURA_CAST_WHILE_WALKING, m_currentSpells[CURRENT_AUTOREPEAT_SPELL]->m_spellInfo))
{
// cancel wand shoot

View File

@@ -210,7 +210,7 @@ class TC_GAME_API Group
void SetGroupMarkerMask(uint32 mask) { m_markerMask = mask; }
void AddGroupMarkerMask(uint32 mask) { m_markerMask |= mask; }
void RemoveGroupMarkerMask(uint32 mask) { if (mask == 0x20) m_markerMask = 0x20; m_markerMask &= ~mask; }
bool HasMarker(uint32 mask) { return m_markerMask & mask; }
uint32 HasMarker(uint32 mask) { return m_markerMask & mask; }
uint32 GetMarkerMask() { return m_markerMask; }
DynamicObject* GetMarkerGuidBySpell(uint32 spell);

View File

@@ -470,7 +470,7 @@ void WorldSocket::SendPacketAndLogOpcode(WorldPacket& packet)
SendPacket(packet);
}
void WorldSocket::SendPacket(WorldPacket& packet)
void WorldSocket::SendPacket(WorldPacket const& packet)
{
if (!IsOpen())
return;

View File

@@ -65,7 +65,7 @@ public:
void Start() override;
bool Update() override;
void SendPacket(WorldPacket& packet);
void SendPacket(WorldPacket const& packet);
protected:
void OnClose() override;