mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Fixed one build error and performance warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
void Start() override;
|
||||
bool Update() override;
|
||||
|
||||
void SendPacket(WorldPacket& packet);
|
||||
void SendPacket(WorldPacket const& packet);
|
||||
|
||||
protected:
|
||||
void OnClose() override;
|
||||
|
||||
Reference in New Issue
Block a user