mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 16:57:47 +00:00
Minor refactoring
This commit is contained in:
parent
97ae40e93c
commit
092896a047
1 changed files with 8 additions and 8 deletions
|
@ -1057,7 +1057,7 @@ void Core::Entity::Player::update( int64_t currTime )
|
||||||
Common::FFXIVARR_POSITION3 targetPos = m_queuedZoneing->m_targetPosition;
|
Common::FFXIVARR_POSITION3 targetPos = m_queuedZoneing->m_targetPosition;
|
||||||
if( getCurrentZone()->getId() != m_queuedZoneing->m_targetZone )
|
if( getCurrentZone()->getId() != m_queuedZoneing->m_targetZone )
|
||||||
{
|
{
|
||||||
performZoning( m_queuedZoneing->m_targetZone, targetPos, m_queuedZoneing->m_targetRotation);
|
performZoning( m_queuedZoneing->m_targetZone, targetPos, m_queuedZoneing->m_targetRotation);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1374,13 +1374,13 @@ void Core::Entity::Player::onMobDeaggro( Core::Entity::BattleNpcPtr pBNpc )
|
||||||
void Core::Entity::Player::hateListAdd( Core::Entity::BattleNpcPtr pBNpc )
|
void Core::Entity::Player::hateListAdd( Core::Entity::BattleNpcPtr pBNpc )
|
||||||
|
|
||||||
{
|
{
|
||||||
if( !m_freeHateSlotQueue.empty() )
|
if( m_freeHateSlotQueue.empty() )
|
||||||
{
|
return;
|
||||||
uint8_t hateId = m_freeHateSlotQueue.front();
|
uint8_t hateId = m_freeHateSlotQueue.front();
|
||||||
m_freeHateSlotQueue.pop();
|
m_freeHateSlotQueue.pop();
|
||||||
m_actorIdTohateSlotMap[pBNpc->getId()] = hateId;
|
m_actorIdTohateSlotMap[pBNpc->getId()] = hateId;
|
||||||
sendHateList();
|
sendHateList();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Core::Entity::Player::hateListRemove( Core::Entity::BattleNpcPtr pBNpc )
|
void Core::Entity::Player::hateListRemove( Core::Entity::BattleNpcPtr pBNpc )
|
||||||
|
|
Loading…
Add table
Reference in a new issue