From 8bfc49cfa5e2ed331a5714e96db003d7d834ca4b Mon Sep 17 00:00:00 2001 From: click Date: Wed, 5 Jan 2011 17:55:57 +0100 Subject: Core/Entities: Send SMSG_DISMOUNT notification to client when dismounting (mount/vehicle). Thanks to Vladimir. --- src/server/game/Entities/Unit/Unit.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server') diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index f9bebe13ac1..be743f63dc7 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -11657,6 +11657,10 @@ void Unit::Unmount() SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, 0); RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT); + WorldPacket data(SMSG_DISMOUNT, 8); + data << GetPackGUID(); + SendMessageToSet(&data, true); + // only resummon old pet if the player is already added to a map // this prevents adding a pet to a not created map which would otherwise cause a crash // (it could probably happen when logging in after a previous crash) -- cgit v1.2.3