mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-07 11:17:46 +00:00
Merge pull request #727 from collett8192/patch
fix duty info remaining on client after leaving.
This commit is contained in:
commit
067f3e6182
2 changed files with 1 additions and 7 deletions
|
@ -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 )
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue