Merge pull request #688 from noudess/master

Exclude clients from FixZ to fix fear issues.
This commit is contained in:
Chris Miles 2018-01-09 19:35:30 -06:00 committed by GitHub
commit 14b3525e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -884,7 +884,7 @@ void Mob::FixZ(int32 z_find_offset /*= 5*/)
glm::vec3 current_loc(m_Position);
float new_z = GetFixedZ(current_loc, z_find_offset);
if (new_z != m_Position.z)
if (!IsClient() && new_z != m_Position.z)
{
if ((new_z > -2000) && new_z != BEST_Z_INVALID) {
if (RuleB(Map, MobZVisualDebug))