aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorclick <click@gonnamakeyou.com>2011-01-05 17:55:57 +0100
committerclick <click@gonnamakeyou.com>2011-01-05 17:55:57 +0100
commit8bfc49cfa5e2ed331a5714e96db003d7d834ca4b (patch)
treeb172ef141c757022b766483004d140618f5087ba /src
parenteac259f75f7d122d3d124093513eb43967669696 (diff)
Core/Entities: Send SMSG_DISMOUNT notification to client when dismounting (mount/vehicle).
Thanks to Vladimir.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp4
1 files changed, 4 insertions, 0 deletions
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)