diff --git a/Client/src/actionmodule_nan.cpp b/Client/src/actionmodule_nan.cpp index fc89d5a..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 = std::max(10.0, std::min((double)power, 127.0)); + quint8 p = command.power > 0.01 ? std::max(10.0, std::min((double)power, 127.0)) : 0; TXBuff[6*i + 8] = p; } 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