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

This commit is contained in:
Akkadius
2017-03-25 23:32:49 -05:00
parent 9e41795594
commit 719098a97c
3 changed files with 62 additions and 50 deletions
+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