From febc282d1f357a07003cb62d6b573f2f1420e3ee Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 五月 2022 17:02:02 +0800
Subject: [PATCH] 9415 【BT】【后端】古神战场(修复偶发无法进入战场,提示副本已关闭的bug)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py
index 697edb8..eaceeae 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/GameWorldProcess.py
@@ -167,8 +167,11 @@
         
     playerManager = gameWorld.GetMapCopyPlayerManager()
     
+    GameServer_DynamicLineMapStateChange(gameWorld, IPY_GameWorld.fbosClosed)
+    
     #地图关闭时,玩家还没退出,设置延迟关闭
     if playerManager.GetPlayerCount() > 0:
+        GameWorld.Log("关闭副本时还有玩家! %s" % playerManager.GetPlayerCount())
         gameWorld.SetOpenState(IPY_GameWorld.fbosWaitForClose)
         return
     
@@ -177,8 +180,6 @@
     #根据是否收缩型FB处理
     FreeOrClearFBByAutoSize(gameWorld)
     
-    GameServer_DynamicLineMapStateChange(gameWorld, IPY_GameWorld.fbosClosed)
-        
     gameWorld.SetPropertyID(0)
     PyGameData.g_crossPlayerServerGroupIDInfo.pop(copyMapID, None)
     return

--
Gitblit v1.8.0