From d4e0e8aea254b57c7fcbeb8dc9f451278b6b9097 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 28 Aug 2018 00:55:06 -0500 Subject: [PATCH] Revert LOS check code until further refinement --- zone/mob_ai.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 58088a35b..405ff3643 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -1706,29 +1706,6 @@ void NPC::AI_DoMovement() { } } - /** - * We check for line of sight because we dont' want NPC's scaling on top of buildings and over ridiculous - * mountains, this also peels back the frequency of pathing as well because we don't want to spam LOS checks - * so if we fail a LOS check to our randomly chosen destination, we roll another timer cycle and wait again - * - * This is also far nicer on CPU since roamboxes are heavy by nature - */ - if (!CheckLosFN( - roambox_destination_x, - roambox_destination_y, - m_Position.z + GetZOffset(), - this->GetSize())) { - - time_until_can_move = Timer::GetCurrentTime() + RandomTimer(roambox_min_delay, roambox_delay); - - Log(Logs::Detail, - Logs::NPCRoamBox, - "%s | Can't see where I want to go... I'll try something else...", - this->GetCleanName()); - - return; - } - Log(Logs::Detail, Logs::NPCRoamBox, "Calculate | NPC: %s distance %.3f | min_x %.3f | max_x %.3f | final_x %.3f | min_y %.3f | max_y %.3f | final_y %.3f",