mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 09:17:47 +00:00
Minor refactoring
This commit is contained in:
parent
97ae40e93c
commit
092896a047
1 changed files with 8 additions and 8 deletions
|
@ -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