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:
parent
87ba83ce50
commit
e360dadb95
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"
|
// mark player as "bound by duty"
|
||||||
player.setStateFlag( PlayerStateFlag::BoundByDuty );
|
player.setStateFlag( PlayerStateFlag::BoundByDuty );
|
||||||
|
|
||||||
// if the instance was not started yet, director init is sent on enter event.
|
sendDirectorInit( player );
|
||||||
// else it will be sent on finish loading.
|
|
||||||
if( m_state == Created )
|
|
||||||
sendDirectorInit( player );
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sapphire::InstanceContent::onLeaveTerritory( Entity::Player& 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 )
|
void Sapphire::InstanceContent::onFinishLoading( Entity::Player& player )
|
||||||
{
|
{
|
||||||
sendDirectorInit( player );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sapphire::InstanceContent::onInitDirector( Entity::Player& 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 )
|
void Sapphire::PublicContent::onFinishLoading( Entity::Player& player )
|
||||||
{
|
{
|
||||||
sendDirectorInit( player );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sapphire::PublicContent::onInitDirector( Entity::Player& player )
|
void Sapphire::PublicContent::onInitDirector( Entity::Player& player )
|
||||||
|
|
Loading…
Add table
Reference in a new issue