Revert LOS check code until further refinement

This commit is contained in:
Akkadius 2018-08-28 00:55:06 -05:00
parent 12f19fd824
commit d4e0e8aea2

View File

@ -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",