From dd3d1998f3a219118b9c24af1763a96e1fef85d1 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 28 一月 2019 17:45:23 +0800 Subject: [PATCH] 6112 【后端】【1.5.200】诛仙塔优化 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py index feafac2..9aed006 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py @@ -103,13 +103,10 @@ del inputList[0] #把剩余参数转换为整型 for i in range(0, len(inputList)): - if not inputList[i].isdigit(): - continue - value = GameWorld.ToIntDef(inputList[i], None) if value == None: - GameWorld.DebugAnswer(curPlayer, "参数错误, 必须为纯数字!") - return + #GameWorld.DebugAnswer(curPlayer, "参数错误, 必须为纯数字!") + continue inputList[i] = value callFunc(curPlayer, inputList) @@ -258,7 +255,7 @@ curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) if not curPlayer.GetMapLoadOK(): - #未读取地图成功,不让用 + GameWorld.DebugLog(" 未读取地图成功,不让用") return #判断FB中是否可使用GM命令 -- Gitblit v1.8.0