[Performance] Reduced CPU footprint in non-combat zones doing constant checks for combat related activities

This commit is contained in:
Akkadius committed 2017-03-25 23:32:49 -05:00
1 parent 9e41795594
commit 719098a97c
3 files changed
+62 -50

No files matched your search

+1 -1
View File
@@ -616,7 +616,7 @@ bool Client::Process() {
//At this point, we are still connected, everything important has taken
//place, now check to see if anybody wants to aggro us.
// only if client is not feigned
if(ret && !GetFeigned() && scanarea_timer.Check()) {
if(zone->CanDoCombat() && ret && !GetFeigned() && scanarea_timer.Check()) {
entity_list.CheckClientAggro(this);
}
#endif