diff --git a/src/game/ChatHandler.cpp b/src/game/ChatHandler.cpp index 6d778db3d..48d3cb472 100644 --- a/src/game/ChatHandler.cpp +++ b/src/game/ChatHandler.cpp @@ -556,9 +556,9 @@ void WorldSession::HandleTextEmoteOpcode( WorldPacket & recv_data ) if (!em) return; - uint32 emote_anim = em->textid; + uint32 emote_id = em->textid; - switch(emote_anim) + switch(emote_id) { case EMOTE_STATE_SLEEP: case EMOTE_STATE_SIT: @@ -566,7 +566,7 @@ void WorldSession::HandleTextEmoteOpcode( WorldPacket & recv_data ) case EMOTE_ONESHOT_NONE: break; default: - GetPlayer()->HandleEmoteCommand(emote_anim); + GetPlayer()->HandleEmoteCommand(emote_id); break; } diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index add667b35..602b39835 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1726,29 +1726,29 @@ void Unit::DealMeleeDamage(CalcDamageInfo *damageInfo, bool durabilityLoss) } -void Unit::HandleEmoteCommand(uint32 anim_id) +void Unit::HandleEmoteCommand(uint32 emote_id) { WorldPacket data( SMSG_EMOTE, 4 + 8 ); - data << uint32(anim_id); + data << uint32(emote_id); data << uint64(GetGUID()); SendMessageToSet(&data, true); } -void Unit::HandleEmoteState(uint32 anim_id) +void Unit::HandleEmoteState(uint32 emote_id) { - SetUInt32Value(UNIT_NPC_EMOTESTATE, anim_id); + SetUInt32Value(UNIT_NPC_EMOTESTATE, emote_id); } -void Unit::HandleEmote(uint32 anim_id) +void Unit::HandleEmote(uint32 emote_id) { - if (!anim_id) + if (!emote_id) HandleEmoteState(0); - else if (EmotesEntry const* emoteEntry = sEmotesStore.LookupEntry(anim_id)) + else if (EmotesEntry const* emoteEntry = sEmotesStore.LookupEntry(emote_id)) { if (emoteEntry->EmoteType) // 1,2 states, 0 command - HandleEmoteState(anim_id); + HandleEmoteState(emote_id); else - HandleEmoteCommand(anim_id); + HandleEmoteCommand(emote_id); } } diff --git a/src/game/Unit.h b/src/game/Unit.h index 41fcac590..5af1b5eea 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -1278,9 +1278,9 @@ class MANGOS_DLL_SPEC Unit : public WorldObject void ProcDamageAndSpell(Unit *pVictim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType = BASE_ATTACK, SpellEntry const *procSpell = NULL); void ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellEntry const * procSpell, uint32 damage ); - void HandleEmote(uint32 anim_id); // auto-select command/state - void HandleEmoteCommand(uint32 anim_id); - void HandleEmoteState(uint32 anim_id); + void HandleEmote(uint32 emote_id); // auto-select command/state + void HandleEmoteCommand(uint32 emote_id); + void HandleEmoteState(uint32 emote_id); void AttackerStateUpdate (Unit *pVictim, WeaponAttackType attType = BASE_ATTACK, bool extra = false ); float MeleeMissChanceCalc(const Unit *pVictim, WeaponAttackType attType) const; diff --git a/src/game/debugcmds.cpp b/src/game/debugcmds.cpp index 9ea6958cd..91292265d 100644 --- a/src/game/debugcmds.cpp +++ b/src/game/debugcmds.cpp @@ -751,8 +751,8 @@ bool ChatHandler::HandleDebugAnimCommand(const char* args) if (!*args) return false; - uint32 anim_id = atoi((char*)args); - m_session->GetPlayer()->HandleEmoteCommand(anim_id); + uint32 emote_id = atoi((char*)args); + m_session->GetPlayer()->HandleEmoteCommand(emote_id); return true; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8acd80598..970170947 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10309" + #define REVISION_NR "10310" #endif // __REVISION_NR_H__