Fix some pathing logic that is using Z to match a node reach when it is error prone in certain scenarios

Fixed a decent amount of path logging
This commit is contained in:
Akkadius
2017-07-18 19:09:28 -05:00
parent a83edb83ba
commit 7cda4aaa2c
3 changed files with 72 additions and 70 deletions
+2 -2
View File
@@ -855,7 +855,7 @@ void Mob::FixZ() {
Log(
Logs::Moderate,
Logs::Pathing,
Logs::FixZ,
"Mob::FixZ() (%s) returned %4.3f at %4.3f, %4.3f, %4.3f - Took %lf",
this->GetCleanName(),
new_z,
@@ -875,7 +875,7 @@ void Mob::FixZ() {
if (RuleB(Map, MobZVisualDebug))
this->SendAppearanceEffect(103, 0, 0, 0, 0);
Log(Logs::General, Logs::Debug, "%s is failing to find Z %f", this->GetCleanName(), std::abs(m_Position.z - new_z));
Log(Logs::General, Logs::FixZ, "%s is failing to find Z %f", this->GetCleanName(), std::abs(m_Position.z - new_z));
}
last_z = m_Position.z;