Remove debugging

This commit is contained in:
Akkadius 2017-11-21 21:48:35 -06:00
parent 790304d1f1
commit 29a62dfa85
2 changed files with 10 additions and 11 deletions

View File

@ -272,7 +272,6 @@ bool Client::Process() {
if (force_spawn_updates && mob != this) {
if (mob->is_distance_roamer) {
Log(Logs::General, Logs::Debug, "Updating distance roamer %s", mob->GetCleanName());
mob->SendPositionUpdateToClient(this);
continue;
}

View File

@ -850,14 +850,14 @@ float Mob::GetFixedZ(glm::vec3 dest, int32 z_find_offset)
float new_z = dest.z;
if (zone->HasMap() && RuleB(Map, FixZWhenMoving) &&
(flymode != 1 && flymode != 2))
(flymode != 1 && flymode != 2))
{
if (!RuleB(Watermap, CheckForWaterWhenMoving) || !zone->HasWaterMap()
|| (zone->HasWaterMap() &&
!zone->watermap->InWater(glm::vec3(m_Position))))
!zone->watermap->InWater(glm::vec3(m_Position))))
{
/* Any more than 5 in the offset makes NPC's hop/snap to ceiling in small corridors */
new_z = this->FindDestGroundZ(dest,z_find_offset);
new_z = this->FindDestGroundZ(dest, z_find_offset);
if (new_z != BEST_Z_INVALID)
{
new_z += this->GetZOffset();
@ -882,7 +882,7 @@ float Mob::GetFixedZ(glm::vec3 dest, int32 z_find_offset)
void Mob::FixZ(int32 z_find_offset /*= 5*/)
{
glm::vec3 current_loc(m_Position);
float new_z=GetFixedZ(current_loc, z_find_offset);
float new_z = GetFixedZ(current_loc, z_find_offset);
if (new_z != m_Position.z)
{