mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
Fix unmounting
(cherry picked from commit 5449d763cd93931b57f0c0cfdb37719d1bae7ddc)
This commit is contained in:
parent
3aa65a1ac9
commit
594cb7f11d
1 changed files with 4 additions and 4 deletions
|
@ -185,10 +185,6 @@ void PlayerMgr::onMountUpdate( Entity::Player& player, uint32_t mountId )
|
||||||
player.sendToInRangeSet( makeActorControl( player.getId(), ActorControlType::SetStatus,
|
player.sendToInRangeSet( makeActorControl( player.getId(), ActorControlType::SetStatus,
|
||||||
static_cast< uint8_t >( Common::ActorStatus::Mounted ) ), true );
|
static_cast< uint8_t >( Common::ActorStatus::Mounted ) ), true );
|
||||||
player.sendToInRangeSet( makeActorControlSelf( player.getId(), 0x39e, 12 ), true ); //?
|
player.sendToInRangeSet( makeActorControlSelf( player.getId(), 0x39e, 12 ), true ); //?
|
||||||
|
|
||||||
auto mountPacket = makeZonePacket< FFXIVIpcMount >( player.getId() );
|
|
||||||
mountPacket->data().id = mountId;
|
|
||||||
player.sendToInRangeSet( mountPacket, true );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -196,6 +192,10 @@ void PlayerMgr::onMountUpdate( Entity::Player& player, uint32_t mountId )
|
||||||
static_cast< uint8_t >( Common::ActorStatus::Idle ) ), true );
|
static_cast< uint8_t >( Common::ActorStatus::Idle ) ), true );
|
||||||
player.sendToInRangeSet( makeActorControlSelf( player.getId(), ActorControlType::Dismount, 1 ), true );
|
player.sendToInRangeSet( makeActorControlSelf( player.getId(), ActorControlType::Dismount, 1 ), true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto mountPacket = makeZonePacket< FFXIVIpcMount >( player.getId() );
|
||||||
|
mountPacket->data().id = mountId;
|
||||||
|
player.sendToInRangeSet( mountPacket, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayerMgr::onMobKill( Entity::Player& player, Entity::BNpc& bnpc )
|
void PlayerMgr::onMobKill( Entity::Player& player, Entity::BNpc& bnpc )
|
||||||
|
|
Loading…
Add table
Reference in a new issue