From 867c5145e4e860ed85c8eb24b272f30729e77e34 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 15 一月 2024 21:12:47 +0800
Subject: [PATCH] 10019 【砍树】回合战斗(战斗实例全部统一使用NPC,包含玩家自己及其他玩家镜像数据;)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py
index 4cf25cc..2510bfd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py
@@ -423,7 +423,7 @@
             Sync_PlayerCache(curPlayer, findPlayerID)
         callFunc(curPlayer, findPlayerID, callData, dataDict)
         return dataDict
-    PyGameData.g_viewCacheCallback[playerID] = [callFunc, callData]
+    PyGameData.g_viewCacheCallback[playerID] = [callFunc, callData, syncClient]
     
     #GameWorld.DebugLog("发送到GameServer查询玩家缓存! playerID=%s,findPlayerID=%s" % (playerID, findPlayerID), playerID)
     sendPack = ChMapToGamePyPack.tagMGQueryPlayerCache()
@@ -470,10 +470,12 @@
     callback = PyGameData.g_viewCacheCallback.pop(playerID, None)
     if not callback:
         return
-    callFunc, callData = callback
+    callFunc, callData, syncClient = callback
     curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
     if not curPlayer:
         return
+    if syncClient:
+        Sync_PlayerCache(curPlayer, findPlayerID)
     callFunc(curPlayer, findPlayerID, callData, curPlayerPropDict)
     return
 

--
Gitblit v1.8.0