From 22c964784d465c77365c2495f6d43117618d8482 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 26 十二月 2024 16:52:25 +0800
Subject: [PATCH] 10350 【后端】【越南】【英文】【BT】【砍树】跨服竞技场优化

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py
index 1dd27a2..311333d 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py
@@ -180,8 +180,6 @@
     ''' 玩家登录需要处理的内容,本服及跨服服务器分开
     '''
     if GameWorld.IsCrossServer():
-        #跨服PK
-        CrossRealmPK.OnPlayerLoginCrossServer(curPlayer)
         #协助
         PlayerAssist.OnPlayerLoginCrossServer(curPlayer)
         return
@@ -643,9 +641,6 @@
         PlayerFB.OnPlayerDisconnectCrossServer(curPlayer)
         return
     
-    #跨服匹配PK
-    CrossRealmPK.OnLeaveServer(curPlayer)
-    
     #组队玩家离线
     PlayerTeam.DoPlayerLogOffTeamLogic(curPlayer, tick)
     #家族玩家离线
@@ -712,11 +707,8 @@
     
     # 上线
     if isOnline:
-        # 需要管理跨服在线状态时,默认需要同步缓存信息
-        syncStateInfo = {"playerID":playerID, "ViewCacheCross":1}
-        packDataMgr = PyDataManager.GetDBPlayerPackDataManager()
-        if playerID in packDataMgr.playerPackDataDict:
-            syncStateInfo["PackDataCross"] = 1
+        # 需要管理跨服在线状态时,默认需要同步缓存信息、打包数据信息
+        syncStateInfo = {"playerID":playerID, "ViewCacheCross":1, "PackDataCross":1}
         CrossRealmMsg.SendMsgToClientServer(ShareDefine.CrossServerMsg_PlayerPackDataState, syncStateInfo, [serverGroupID])
         
         GameXiangong.OnPlayerLogin_CrossLogic(serverGroupID, serverID, playerID)

--
Gitblit v1.8.0