From da003f0c7b7ecc1eb16ae77eb0e552b9cd0002bc Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 28 十二月 2018 17:50:54 +0800
Subject: [PATCH] 2764  【1.4】偶发跨服退出地图异常

---
 Fight/MapTransferUtility.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Fight/MapTransferUtility.cs b/Fight/MapTransferUtility.cs
index 929a240..8871bb5 100644
--- a/Fight/MapTransferUtility.cs
+++ b/Fight/MapTransferUtility.cs
@@ -818,6 +818,11 @@
 
     public static bool Send_WorldTransfer(int mapId, Vector3 position, MapTransferType type, byte lineID = 255, int _npcId = 0)
     {
+        if (CrossServerLogin.Instance.IsEnterCrossServerPreparing())
+        {
+            return false;
+        }
+
         if (!AssetSource.sceneFromEditor)
         {
             var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(mapId, 0);

--
Gitblit v1.8.0