1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 08:07:46 +00:00

fix duty info remaining on client after leaving

This commit is contained in:
collett 2021-09-13 05:25:38 +09:00
parent 87ba83ce50
commit e360dadb95
2 changed files with 1 additions and 7 deletions

View file

@ -80,11 +80,7 @@ void Sapphire::InstanceContent::onPlayerZoneIn( Entity::Player& player )
// mark player as "bound by duty"
player.setStateFlag( PlayerStateFlag::BoundByDuty );
// if the instance was not started yet, director init is sent on enter event.
// else it will be sent on finish loading.
if( m_state == Created )
sendDirectorInit( player );
sendDirectorInit( player );
}
void Sapphire::InstanceContent::onLeaveTerritory( Entity::Player& player )
@ -164,7 +160,6 @@ void Sapphire::InstanceContent::onUpdate( uint64_t tickCount )
void Sapphire::InstanceContent::onFinishLoading( Entity::Player& player )
{
sendDirectorInit( player );
}
void Sapphire::InstanceContent::onInitDirector( Entity::Player& player )

View file

@ -91,7 +91,6 @@ void Sapphire::PublicContent::onUpdate( uint64_t tickCount )
void Sapphire::PublicContent::onFinishLoading( Entity::Player& player )
{
sendDirectorInit( player );
}
void Sapphire::PublicContent::onInitDirector( Entity::Player& player )