From a66a40dc9988645dd7b40fbea33cc5cbc4bdcb3a Mon Sep 17 00:00:00 2001 From: stfx Date: Thu, 12 Apr 2012 21:53:06 +0200 Subject: [PATCH] [11952] Add support to send the anim for SMSG_TAMEOBJECT_CUSTOM_ANIM Signed-off-by: Schmoozerd --- src/game/Object.cpp | 4 ++-- src/game/Object.h | 2 +- src/shared/revision_nr.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/Object.cpp b/src/game/Object.cpp index ea5cd2b91..2e9fe1028 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1520,11 +1520,11 @@ void WorldObject::SendObjectDeSpawnAnim(ObjectGuid guid) SendMessageToSet(&data, true); } -void WorldObject::SendGameObjectCustomAnim(ObjectGuid guid) +void WorldObject::SendGameObjectCustomAnim(ObjectGuid guid, uint32 animId /*= 0*/) { WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM, 8+4); data << ObjectGuid(guid); - data << uint32(0); // not known what this is + data << uint32(animId); SendMessageToSet(&data, true); } diff --git a/src/game/Object.h b/src/game/Object.h index 9e3ac0892..be7465b61 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -551,7 +551,7 @@ class MANGOS_DLL_SPEC WorldObject : public Object void PlayDirectSound(uint32 sound_id, Player* target = NULL); void SendObjectDeSpawnAnim(ObjectGuid guid); - void SendGameObjectCustomAnim(ObjectGuid guid); + void SendGameObjectCustomAnim(ObjectGuid guid, uint32 animId = 0); virtual bool IsHostileTo(Unit const* unit) const =0; virtual bool IsFriendlyTo(Unit const* unit) const =0; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index d9df2c319..b9c7f4812 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 "11951" + #define REVISION_NR "11952" #endif // __REVISION_NR_H__