From 6c995efde15ba0f95497a5d2a8b5ccfa868ae64d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 13 四月 2019 11:43:21 +0800
Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(开始自定义场景封包导出)
---
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py
index 4b3114f..e9da661 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py
@@ -117,8 +117,11 @@
mapPosInfo = IpyGameDataPY.GetFuncEvalCfg("CrossDemonKingMap", 2)
else:
return
- posX, posY = mapPosInfo
-
+ posX, posY = mapPosInfo[:2]
+ dist = mapPosInfo[2] if len(mapPosInfo) > 2 else 0
+ if dist > 0:
+ posX, posY = random.randint(posX - dist, posX + dist), random.randint(posY - dist, posY + dist)
+
for playerID in playerIDList:
curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
if not curPlayer:
--
Gitblit v1.8.0