8971 【主干】【BT2】仙玉和灵石增加支持负数(修复主干GM命令负数参数转化异常问题)
1个文件已修改
2 ■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorld.py
@@ -406,7 +406,7 @@
    try:
        if type(inputStr) in [int, float]:
            return inputStr
        if inputStr.isdigit():
        if inputStr.isdigit() or (inputStr.startswith("-") and inputStr[1:].isdigit()):
            result = int(inputStr)
        else:
            result = float(inputStr)