少年修仙传客户端代码仓库
hch
2020-10-12 8de57f115b658792c7c012f237d620fd74b7fdef
4728 【主干】跨服匹配到机器人返回本服异常
2个文件已修改
10 ■■■■■ 已修改文件
System/CrossServerOneVsOne/CrossServerOneVsOneModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/CrossServerOneVsOneClient/ClientCrossServerOneVsOneStage.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/CrossServerOneVsOne/CrossServerOneVsOneModel.cs
@@ -128,7 +128,7 @@
        private void OnLoadMapFinish()
        {
            var dataMapId = dungeonModel.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID);
            if (recordDataMapId == CrossServerDataMapId
            if ((recordDataMapId == CrossServerDataMapId || recordDataMapId == 1000)
                && dataMapId != CrossServerDataMapId)
            {
                var pkSeason = CrossServerOneVsOnePKSeason.Instance;
System/CrossServerOneVsOneClient/ClientCrossServerOneVsOneStage.cs
@@ -10,6 +10,8 @@
    static readonly Vector3 leftBornPoint = new Vector3(4.9f, 0.2f, 3.5f);
    static readonly Vector3 rightBornPoint = new Vector3(20f, 0.2f, 18.8f);
    static readonly Vector3 initPoint = new Vector3(30f, 0.2f, 30f);
    static FightInfo fightInfo;
    static PKStageType pkStageType;
    static GA_PlayerClient.PlayerInfo playerInfo;
@@ -79,10 +81,10 @@
    {
        PersonalEnemy.OnPlayerAppear -= OnPlayerAppear;
        opponentPlayer = player;
        if (recordPosition != Vector3.zero)
        if (recordPosition != initPoint)
        {
            opponentPlayer.Pos = recordPosition;
            recordPosition = Vector3.zero;
            recordPosition = initPoint;
        }
    }
@@ -144,7 +146,7 @@
        }
    }
    private Vector3 recordPosition = Vector3.zero;
    private Vector3 recordPosition = initPoint;
    private void OnReconnected()
    {