From 056725b9bd60e400aeb168a2ec8d71dcfc48ec1b Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 21 Feb 2017 13:38:00 -0500 Subject: [PATCH] Make timer for aggro meter not a magic number you can edit AGGRO_METER_UPDATE_MS in common/features.h if you want to see if a different number would work better --- common/features.h | 3 +++ zone/client.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/features.h b/common/features.h index 27390e745..4140014d8 100644 --- a/common/features.h +++ b/common/features.h @@ -235,6 +235,9 @@ enum { //some random constants #define ZONE_CONTROLLER_NPC_ID 10 +// Timer to update aggrometer +#define AGGRO_METER_UPDATE_MS 1000 + //Some hard coded statuses from commands and other places: enum { minStatusToBeGM = 40, diff --git a/zone/client.cpp b/zone/client.cpp index 5f3d3ac81..842563d88 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -154,7 +154,7 @@ Client::Client(EQStreamInterface* ieqs) afk_toggle_timer(250), helm_toggle_timer(250), light_update_timer(600), - aggro_meter_timer(1000), + aggro_meter_timer(AGGRO_METER_UPDATE_MS), m_Proximity(FLT_MAX, FLT_MAX, FLT_MAX), //arbitrary large number m_ZoneSummonLocation(-2.0f,-2.0f,-2.0f), m_AutoAttackPosition(0.0f, 0.0f, 0.0f, 0.0f),