From 52c38980ca3ca96e80a932e91a84707b6e8f64fe Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 15 五月 2025 10:51:13 +0800 Subject: [PATCH] 16 卡牌服务端(屏蔽上架系统拍品) --- ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossFamilyGCZ.py | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossFamilyGCZ.py b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossFamilyGCZ.py index 806285c..2d66655 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossFamilyGCZ.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GameWorldLogic/CrossFamilyGCZ.py @@ -249,9 +249,8 @@ return True def SetPlayerInCity(self, playerID, serverGroupID): - if playerID in self.inCityPlayerIDList: - return - self.inCityPlayerIDList.append(playerID) + if playerID not in self.inCityPlayerIDList: + self.inCityPlayerIDList.append(playerID) Sync_FamilyGCZBatCityInfo(self.zoneID, self.batType, self.groupNum, self.cityID, toPlayerServerDict={playerID:serverGroupID}) return @@ -494,9 +493,8 @@ return newCity def SetPlayerInScene(self, playerID, serverGroupID): - if playerID in self.inBatScenePlayerIDList: - return - self.inBatScenePlayerIDList.append(playerID) + if playerID not in self.inBatScenePlayerIDList: + self.inBatScenePlayerIDList.append(playerID) Sync_FamilyGCZBatSceneInfo(self.zoneID, self.batType, self.groupNum, toPlayerServerDict={playerID:serverGroupID}) return -- Gitblit v1.8.0