Browse Source

关卡解锁判断bugfix

guodong 2 years ago
parent
commit
74bdfc7799
1 changed files with 4 additions and 1 deletions
  1. 4 1
      GameClient/Assets/Game/HotUpdate/Data/MainStoryDataManager.cs

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Data/MainStoryDataManager.cs

@@ -122,7 +122,10 @@ namespace GFGGame
             var preChapterCfg = StoryChapterCfgArray.Instance.GetCfg(preChapterId);
             var preChapterCfg = StoryChapterCfgArray.Instance.GetCfg(preChapterId);
             if (preChapterCfg != null)
             if (preChapterCfg != null)
             {
             {
-                return InstanceZonesDataManager.CheckChapterPass(preChapterCfg.type, preChapterCfg.subType, preChapterCfg.id, preChapterCfg.levelCount);
+                if(!InstanceZonesDataManager.CheckChapterPass(preChapterCfg.type, preChapterCfg.subType, preChapterCfg.id, preChapterCfg.levelCount))
+                {
+                    return false;
+                }
             }
             }
             //前置关卡
             //前置关卡
             return CheckNeedChapterPass(chapterId, out var needChapterId);
             return CheckNeedChapterPass(chapterId, out var needChapterId);