From 2d40adcf66ba88ec13b3e65964262a77f827bc08 Mon Sep 17 00:00:00 2001 From: KimLS Date: Wed, 18 Feb 2015 12:39:28 -0800 Subject: [PATCH] Partial revert/rewrite of b6dd604, should be possible to get things on a hate list that have zero hate again --- zone/hate_list.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/hate_list.cpp b/zone/hate_list.cpp index 421e44304..df76216ae 100644 --- a/zone/hate_list.cpp +++ b/zone/hate_list.cpp @@ -282,14 +282,14 @@ Mob *HateList::GetEntWithMostHateOnList(Mob *center) return nullptr; Mob* top_hate = nullptr; - uint32 hate = 0; + int64 hate = -1; if (center == nullptr) return nullptr; if (RuleB(Aggro, SmartAggroList)){ Mob* top_client_type_in_range = nullptr; - uint32 hate_client_type_in_range = 0; + int64 hate_client_type_in_range = -1; int skipped_count = 0; auto iterator = list.begin(); @@ -337,7 +337,7 @@ Mob *HateList::GetEntWithMostHateOnList(Mob *center) continue; } - uint32 current_hate = cur->stored_hate_amount; + int64 current_hate = cur->stored_hate_amount; if (cur->entity_on_hatelist->IsClient()){ @@ -459,7 +459,7 @@ Mob *HateList::GetEntWithMostHateOnList(Mob *center) Mob *HateList::GetEntWithMostHateOnList(){ Mob* top = nullptr; - uint32 hate = 0; + int64 hate = -1; auto iterator = list.begin(); while (iterator != list.end())