Skip to content

Commit

Permalink
[10960] Send SMSG_DISMOUNT to client.
Browse files Browse the repository at this point in the history
As know no any affect in work from it.
  • Loading branch information
VladimirMangos committed Jan 4, 2011
1 parent 0590269 commit d037775
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/game/Unit.cpp
Expand Up @@ -7651,7 +7651,11 @@ void Unit::Unmount()
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_NOT_MOUNTED);

SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, 0);
RemoveFlag( UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT );
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
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10959"
#define REVISION_NR "10960"
#endif // __REVISION_NR_H__

3 comments on commit d037775

@blueboy
Copy link

@blueboy blueboy commented on d037775 Feb 1, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
This addition appears to cause problems with multi-node flight. At the first intermediate node, the player dismounts. The player then continue the flight without a mount ( appearing to swim to the destination).
Hope this helps

@Ankso
Copy link

@Ankso Ankso commented on d037775 Feb 1, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have same problem as blueboy, after arrive to the first node the player is dismounted.

@VladimirMangos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for point to source of problem. Must be fixed in [11100]

Please sign in to comment.