From 223d88c4b42d4541ed743b83cce2bbd4e1bdac59 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 04 一月 2019 21:06:29 +0800
Subject: [PATCH] 5424 【后端】【1.4】跨服竞技场开发(屏蔽部分日志)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
index 2afd43a..50ce377 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
@@ -121,9 +121,10 @@
     playerID = curPackData.PlayerID
     teamID = curPackData.TeamID
     teamLV = curPackData.TeamLV
+    memCnt = curPackData.MemCnt
     dataDict = {"playerID":playerID, "teamLV":teamLV}
     
-    GameWorld.DebugLog("GameServer_TeamInfo playerID=%s,teamID=%s,teamLV=%s" % (playerID, teamID, teamLV), playerID)
+    GameWorld.DebugLog("GameServer_TeamInfo playerID=%s,teamID=%s,teamLV=%s,memCnt=%s" % (playerID, teamID, teamLV, memCnt), playerID)
     curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
     if not curPlayer or curPlayer.IsEmpty():
         DR_Team("TeamInfo", teamID, dataDict, "curPlayer is None or empty")
@@ -131,12 +132,15 @@
     
     playerTeamID = curPlayer.GetTeamID()
     # 切图时GameServer玩家无队伍时会同步teamID为0,这里进一步处理,防止地图玩家在某些异常情况下teamID与GameServer不同步
-    if teamID == 0 and playerTeamID:
-        __OnPlayerLeaveTeam(curPlayer.GetCopyMapID(), playerID, playerTeamID, tick)
+    if teamID == 0:
+        if playerTeamID:
+            __OnPlayerLeaveTeam(curPlayer.GetCopyMapID(), playerID, playerTeamID, tick)
         return
     
     RefreshPlayerTeamID(curPlayer, teamID, teamLV, tick)
     
+    curPlayer.SetDict(ChConfig.Def_PlayerKey_TeamMemCount, memCnt)
+    
     sameMapMemCount = 0 # 同地图队员数
     sameMapVIPLV = 0 # 同地图VIP加成等级
     mapID = curPlayer.GetMapID()

--
Gitblit v1.8.0