mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
fix mount action interrupt
This commit is contained in:
parent
f495e61a86
commit
399bb02abf
4 changed files with 4 additions and 3 deletions
|
@ -266,7 +266,6 @@ bool Action::Action::update()
|
||||||
|
|
||||||
if( isInterrupted() )
|
if( isInterrupted() )
|
||||||
{
|
{
|
||||||
interrupt();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,8 @@ void MountAction::start()
|
||||||
|
|
||||||
auto actionStartPkt = makeActorControlSelf( m_pSource->getId(), ActorControlType::ActionStart, 1, getId(), m_recastTimeMs / 10 );
|
auto actionStartPkt = makeActorControlSelf( m_pSource->getId(), ActorControlType::ActionStart, 1, getId(), m_recastTimeMs / 10 );
|
||||||
player->queuePacket( actionStartPkt );
|
player->queuePacket( actionStartPkt );
|
||||||
|
|
||||||
|
m_started = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MountAction::execute()
|
void MountAction::execute()
|
||||||
|
|
|
@ -473,7 +473,7 @@ Sapphire::World::Action::ActionPtr Sapphire::Entity::Chara::getCurrentAction() c
|
||||||
/*! \param ActionPtr of the action to be registered */
|
/*! \param ActionPtr of the action to be registered */
|
||||||
void Sapphire::Entity::Chara::setCurrentAction( Sapphire::World::Action::ActionPtr pAction )
|
void Sapphire::Entity::Chara::setCurrentAction( Sapphire::World::Action::ActionPtr pAction )
|
||||||
{
|
{
|
||||||
m_pCurrentAction = std::move( pAction );
|
m_pCurrentAction = pAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Sapphire::Entity::Chara::getBonusStat( Common::BaseParam bonus ) const
|
uint32_t Sapphire::Entity::Chara::getBonusStat( Common::BaseParam bonus ) const
|
||||||
|
|
|
@ -2269,7 +2269,7 @@ bool Sapphire::Entity::Player::hasQueuedAction() const
|
||||||
|
|
||||||
void Sapphire::Entity::Player::setQueuedAction( Sapphire::World::Action::ActionPtr pAction )
|
void Sapphire::Entity::Player::setQueuedAction( Sapphire::World::Action::ActionPtr pAction )
|
||||||
{
|
{
|
||||||
m_pQueuedAction = std::move( pAction ); // overwrite previous queued action if any
|
m_pQueuedAction = pAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Sapphire::Entity::Player::checkAction()
|
bool Sapphire::Entity::Player::checkAction()
|
||||||
|
|
Loading…
Add table
Reference in a new issue