少年修仙传客户端代码仓库
client_Hale
2018-09-26 7a16a028b164a955e4884af37e0dc71ae95d6643
Fixed 切图逻辑修改
2个文件已修改
31 ■■■■ 已修改文件
Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB106_tagMCNotifyPlayerMove.cs 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/MapTransferUtility.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB106_tagMCNotifyPlayerMove.cs
@@ -12,15 +12,34 @@
        base.Done(vNetPack);
        var package = vNetPack as HB106_tagMCNotifyPlayerMove;
        MapTransferUtility.Instance.Clear();
        if (PlayerDatas.Instance.hero == null
        || package == null)
        {
            return;
        }
        Vector3 _pos = new Vector3((package.PosX - GA_Hero.MapOffset.x) * .5f, 0, (package.PosY - GA_Hero.MapOffset.z) * .5f);
        PlayerDatas.Instance.hero.MoveToPosition(_pos);
        MapTransferUtility.Instance.Clear();
        if (package.NPCID != 0)
        {
            MapTransferUtility.Instance.MapTransferDoType = MapTransferUtility.E_MapTransferDoType.Npc;
            MapTransferUtility.Instance.NpcID = (int)package.NPCID;
            GAStaticDefine.NPCLocation _npcLocation;
            var _findLocation = GAStaticDefine.TryGetMapNPCLocation((int)package.NPCID, out _npcLocation);
            if (_findLocation)
            {
                Vector3 _destPos = new Vector3(_npcLocation.position.x, PlayerDatas.Instance.hero.Pos.y, _npcLocation.position.y);
                PlayerDatas.Instance.hero.MoveToPosition(_destPos, _npcLocation.scope);
                MapTransferUtility.Instance.MapTransferDoType = MapTransferUtility.E_MapTransferDoType.Npc;
                MapTransferUtility.Instance.NpcID = (int)package.NPCID;
            }
            else
            {
                DebugEx.LogWarningFormat("找不到NPCID: {0} 在Npc刷新表中的配置", package.NPCID);
            }
        }
        else
        {
            Vector3 _pos = new Vector3((package.PosX - GA_Hero.MapOffset.x) * .5f, 0, (package.PosY - GA_Hero.MapOffset.z) * .5f);
            PlayerDatas.Instance.hero.MoveToPosition(_pos);
        }
    }
Fight/MapTransferUtility.cs
@@ -257,7 +257,7 @@
                if (_npcLocation.mapId == PlayerDatas.Instance.baseData.MapID)
                {
                    Send_WorldTransfer(_npcLocation.mapId,
                                       new Vector3(_npcLocation.position.x * 2, 0, _npcLocation.position.y * 2),
                                       new Vector3(_hero.Pos.x * 2, 0, _hero.Pos.z * 2),
                                       MapTransferType.WorldTransport, 0, npcID);
                }
                else