[10310] Clarify argument in emote related functions, expecting emote id

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-08-03 01:01:17 +02:00
parent a6d0b61d45
commit 8aaf32798f
5 changed files with 18 additions and 18 deletions

View file

@ -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;
}