From 676b06db9fdd5376b43f84a9fcd256b0a90c8117 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 11 Jul 2022 12:42:10 +0800 Subject: [PATCH 1/3] fix autokick --- Client/src/actionmodule_nan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/src/actionmodule_nan.cpp b/Client/src/actionmodule_nan.cpp index fc89d5a..a36fa1c 100644 --- a/Client/src/actionmodule_nan.cpp +++ b/Client/src/actionmodule_nan.cpp @@ -275,7 +275,7 @@ void encodeLegacy(const NJ_Command& command,QByteArray& tx,int num){ // shoot power - quint8 p = std::max(10.0, std::min((double)power, 127.0)); + quint8 p = power > 0.01 ? std::max(10.0, std::min((double)power, 127.0)) : 0; TXBuff[6*i + 8] = p; } From 8c77d3169307b0b5fb40ae64733abd7fd1e1f3e8 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 11 Jul 2022 12:45:33 +0800 Subject: [PATCH 2/3] fix autokick --- Client/src/actionmodule_nan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/src/actionmodule_nan.cpp b/Client/src/actionmodule_nan.cpp index a36fa1c..ba6b565 100644 --- a/Client/src/actionmodule_nan.cpp +++ b/Client/src/actionmodule_nan.cpp @@ -275,7 +275,7 @@ void encodeLegacy(const NJ_Command& command,QByteArray& tx,int num){ // shoot power - quint8 p = power > 0.01 ? std::max(10.0, std::min((double)power, 127.0)) : 0; + quint8 p = command.power > 0.01 ? std::max(10.0, std::min((double)power, 127.0)) : 0; TXBuff[6*i + 8] = p; } From 34b78739cb7c0e2d44a83c8a7a99f3dbbacb01ab Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 11 Jul 2022 20:54:55 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=94=BE=E7=90=83=E7=9A=84=E8=84=9A=E6=9C=AC=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?[->=E4=B8=8D=E6=A0=B9=E6=8D=AEnext=20command=E8=B7=B3=E8=BD=AC]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZBin/lua_scripts/SelectPlay.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZBin/lua_scripts/SelectPlay.lua b/ZBin/lua_scripts/SelectPlay.lua index 3408597..6663c20 100644 --- a/ZBin/lua_scripts/SelectPlay.lua +++ b/ZBin/lua_scripts/SelectPlay.lua @@ -24,7 +24,7 @@ function RunRefScript(name) end function SelectRefPlay() - local curRefMsg = vision:getLuaRefereeMsg() + local curRefMsg = vision:getCurrentRefereeMsg() debugEngine:gui_debug_msg(CGeoPoint:new_local(1000,1000),curRefMsg) if curRefMsg == "" then gLastRefMsg = curRefMsg