mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-04 09:47:46 +00:00
Handle via inRangeSet
This commit is contained in:
parent
2383fb4321
commit
38661033fa
3 changed files with 3 additions and 6 deletions
|
@ -512,9 +512,6 @@ void Core::Entity::Actor::sendToInRangeSet( Network::Packets::GamePacketPtr pPac
|
|||
pSession->getZoneConnection()->queueOutPacket( pPacket );
|
||||
}
|
||||
|
||||
if( g_territoryMgr.isPrivateTerritory( getCurrentZone()->getTerritoryId() ) )
|
||||
return;
|
||||
|
||||
if( m_inRangePlayers.empty() )
|
||||
return;
|
||||
|
||||
|
|
|
@ -825,9 +825,6 @@ void Core::Entity::Player::setLookAt( uint8_t index, uint8_t value )
|
|||
// spawn this player for pTarget
|
||||
void Core::Entity::Player::spawn( Entity::PlayerPtr pTarget )
|
||||
{
|
||||
if( g_territoryMgr.isPrivateTerritory( getCurrentZone()->getTerritoryId() ) && pTarget->getId() != getId() )
|
||||
return;
|
||||
|
||||
g_log.debug( "[" + std::to_string( pTarget->getId() ) + "] Spawning " +
|
||||
getName() + " for " +
|
||||
pTarget->getName() );
|
||||
|
|
|
@ -725,6 +725,9 @@ void Zone::updateInRangeSet( Entity::ActorPtr pActor, Cell* pCell )
|
|||
if( pCell == nullptr )
|
||||
return;
|
||||
|
||||
if( g_territoryMgr.isPrivateTerritory( getTerritoryId() ) )
|
||||
return;
|
||||
|
||||
Entity::ActorPtr pCurAct;
|
||||
|
||||
auto iter = pCell->m_actors.begin();
|
||||
|
|
Loading…
Add table
Reference in a new issue