hxp
2018-11-13 97ffe45888670fa24be9356121b81610b0a610bf
2250 【1.2】队伍分线成员管理异常
1个文件已修改
5 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
@@ -131,8 +131,9 @@
    
    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)