Update client.cpp

This commit is contained in:
Akkadius 2024-11-19 01:30:24 -06:00
parent 34b3a3fc88
commit d89bcf4f6c

View File

@ -12942,7 +12942,7 @@ void Client::SendTopLevelInventory()
void Client::CheckSendBulkClientPositionUpdate()
{
float distance_moved = DistanceNoZ(m_last_position_before_bulk_update, GetPosition());
bool moved_far_enough_before_bulk_update = distance_moved >= zone->GetMaxUpdateRange();
bool moved_far_enough_before_bulk_update = distance_moved >= zone->GetMaxNpcUpdateRange();
bool is_ready_to_update = (
m_client_zone_wide_full_position_update_timer.Check() || moved_far_enough_before_bulk_update
);
@ -12998,6 +12998,7 @@ void Client::CheckSendBulkClientPositionUpdate()
}
}
const uint16 scan_npc_aggro_timer_idle = RuleI(Aggro, ClientAggroCheckIdleInterval);
const uint16 scan_npc_aggro_timer_moving = RuleI(Aggro, ClientAggroCheckMovingInterval);