GameFramework.User.VerifyNotMovingPosition C# (CSharp) Method

VerifyNotMovingPosition() private method

private VerifyNotMovingPosition ( float x, float z, float maxEnabledDistSqr ) : bool
x float
z float
maxEnabledDistSqr float
return bool
        internal bool VerifyNotMovingPosition(float x, float z, float maxEnabledDistSqr)
        {
            bool ret = true;
            if (m_LastSampleTime > 0) {
                Vector3 pos = new Vector3(x, 0, z);
                float distSqr = Geometry.DistanceSquare(pos, m_LastClientPosition);
                if (distSqr > maxEnabledDistSqr) {
                    ret = false;

                    LogSys.Log(LOG_TYPE.ERROR, "VerifyNoMoveData user:{0}({1},{2},{3}) x:{4} z:{5} sx:{6} sz:{7}", RoleId, GetKey(), Guid, Name, x, z, m_LastClientPosition.X, m_LastClientPosition.Z);
                }
            }
            return ret;
        }