From b8d1b0a71f6fa5f026f15cb116f524d0f76351ef Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期日, 30 九月 2018 14:30:58 +0800
Subject: [PATCH] 3335 添加判断是否可以开启小地图界面的接口

---
 System/MainInterfacePanel/TopRightTip.cs |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/System/MainInterfacePanel/TopRightTip.cs b/System/MainInterfacePanel/TopRightTip.cs
index 453c3e6..7c8b745 100644
--- a/System/MainInterfacePanel/TopRightTip.cs
+++ b/System/MainInterfacePanel/TopRightTip.cs
@@ -27,10 +27,8 @@
 
         private void OpenMapWin()
         {
-            var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig();
-            var config = Config.Instance.Get<MapConfig>(PlayerDatas.Instance.baseData.MapID);
-            if (string.IsNullOrEmpty(mapResConfig.BigMap)
-                || PlayerDatas.Instance.baseData.MapID == FairyLeagueModel.FAIRY_LEAGUE_DUNGEON)
+            var canOpen = ModelCenter.Instance.GetModel<MapModel>().CanOpenLocalMapWin(PlayerDatas.Instance.baseData.MapID);
+            if (!canOpen)
             {
                 SysNotifyMgr.Instance.ShowTip("MapInfo1");
             }

--
Gitblit v1.8.0