mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
#329 Fixed relogging while persistent emote is on ( restting state to idle )
This commit is contained in:
parent
e7e8977d5b
commit
533ba50447
2 changed files with 5 additions and 0 deletions
|
@ -125,6 +125,10 @@ bool Core::Entity::Player::load( uint32_t charId, SessionPtr pSession )
|
|||
m_birthDay = res->getUInt8( "BirthDay" );
|
||||
m_birthMonth = res->getUInt8( "BirthMonth" );
|
||||
m_status = static_cast< ActorStatus >( res->getUInt( "Status" ) );
|
||||
|
||||
if( m_status == Entity::Chara::ActorStatus::EmoteMode )
|
||||
m_status = Entity::Chara::ActorStatus::Idle;
|
||||
|
||||
m_class = static_cast< ClassJob >( res->getUInt( "Class" ) );
|
||||
m_homePoint = res->getUInt8( "Homepoint" );
|
||||
|
||||
|
|
|
@ -175,6 +175,7 @@ void Core::Network::GameConnection::clientTriggerHandler( const Packets::FFXIVAR
|
|||
{
|
||||
player.setPersistentEmote( 0 );
|
||||
player.emoteInterrupt();
|
||||
player.setStatus( Entity::Chara::ActorStatus::Idle );
|
||||
auto pSetStatusPacket = boost::make_shared< ActorControlPacket142 >( player.getId(),
|
||||
SetStatus,
|
||||
static_cast< uint8_t >( Entity::Chara::ActorStatus::Idle ) );
|
||||
|
|
Loading…
Add table
Reference in a new issue