少年修仙传客户端代码仓库
Hale Cai
2018-08-10 79f6e10b8d5f75ff8324160e3487898ea8d42228
fixed #1444 查看其他静止玩家在原地走动
1个文件已修改
15 ■■■■■ 已修改文件
Fight/Actor/UserInputHandler.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/UserInputHandler.cs
@@ -152,6 +152,21 @@
            {
                if (_hero.IsRun())
                {
                    if ((StatusMgr.IsValid()
                      && StatusMgr.Instance.CanMove(PlayerDatas.Instance.PlayerId)))
                    {
                        if (!_hero.IsRushing
                         && !GA_Hero.s_MapSwitching)
                        {
                            float _distance = MathUtility.DistanceSqrtXZ(_hero.PrevPos, _hero.Pos);
                            if (_distance > 0.25f)
                            {
                                _hero.PrevPos = _hero.Pos;
                            }
                            Send_CB409_tagCMPyMove(0);
                        }
                    }
                    if (_hero.State == E_ActorState.AutoRun)
                    {
                        _hero.StopPathFind();