From 71ae4bc172ca3c70e3a6ba2e09ff8bf4f2b57872 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 09 七月 2021 18:20:04 +0800 Subject: [PATCH] 8585 【主干】【BT2】【BT3】【后端】竞技场(Arena命令支持指定匹配玩家ID) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py index 29bc77e..586d56e 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerBillboard.py @@ -444,7 +444,7 @@ def MapServer_UpdateBillboard(billInfoDict, tick): '''地图更新排行榜, 通用 {"Type":bType, "Type2":bType2, "ID":bID, "ID2":bID2, "Name1":bName, "Name2":bName2, "ExInfo":exInfo, - "Value1":value1, "Value2":value2, "CmpValue":cmpValue, "CmpValue2":cmpValue2, "CmpValue3":cmpValue3} + "Value1":value1, "Value2":value2, "CmpValue":cmpValue, "CmpValue2":cmpValue2, "CmpValue3":cmpValue3, "autoSort":autoSort} ''' bType = billInfoDict["Type"] @@ -477,7 +477,7 @@ gameWorld = GameWorld.GetGameWorld() lastSortTick = gameWorld.GetDictByKey(Def_Key_BillboardSortTick % bType) - autoSort = (tick - lastSortTick) >= 60000 # 1分钟强制排序一次 + autoSort = (tick - lastSortTick) >= 60000 or billInfoDict.get("autoSort") == True # 1分钟强制排序一次 if autoSort: gameWorld.SetDict(Def_Key_BillboardSortTick % bType, tick) #GameWorld.DebugLog("更新排行榜:bType=%s,autoSort=%s,tick=%s,lastSortTick=%s,d=%s" % (bType, autoSort, tick, lastSortTick, tick - lastSortTick)) -- Gitblit v1.8.0