From d5202d14127783a34c9a26a1409b1a645116af28 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 05 一月 2019 17:47:39 +0800
Subject: [PATCH] 5424 【后端】【1.4】跨服竞技场开发(登录跨服服务器开启同步属性)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index 5f9aa6d..0a6dacf 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -862,10 +862,16 @@
     #刷新玩家的视野
     PlayerState.ChangePlayerSigh(curPlayer, tick)
     
+    if GameWorld.IsCrossServer():
+        curPlayer.SetForbiddenSyncClientState(False)
+        
     playerControl = PlayerControl.PlayerControl(curPlayer)
     #刷新所有状态
     playerControl.ReCalcAllState()
     
+    if GameWorld.IsCrossServer():
+        curPlayer.SetForbiddenSyncClientState(True)
+    
     #刷新已分钟单位消耗的物品(不让玩家一上线就掉耐久)
     curPlayer.SetProcessEquipDurgTick(tick)
     

--
Gitblit v1.8.0