mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Wire SMSG_FORCE_ANIM animId to emoteAnimCallback
This commit is contained in:
parent
eb9ca8e227
commit
955b22841e
1 changed files with 4 additions and 2 deletions
|
|
@ -2209,9 +2209,11 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
case Opcode::SMSG_FORCE_ANIM: {
|
||||
// packed_guid + uint32 animId — force entity to play animation
|
||||
if (packet.getSize() - packet.getReadPos() >= 1) {
|
||||
(void)UpdateObjectParser::readPackedGuid(packet);
|
||||
uint64_t animGuid = UpdateObjectParser::readPackedGuid(packet);
|
||||
if (packet.getSize() - packet.getReadPos() >= 4) {
|
||||
/*uint32_t animId =*/ packet.readUInt32();
|
||||
uint32_t animId = packet.readUInt32();
|
||||
if (emoteAnimCallback_)
|
||||
emoteAnimCallback_(animGuid, animId);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue