From 7953cf735b468a545f153abf396add5cae5d515e Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Mon, 24 Oct 2022 02:52:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E9=94=AE=E7=9B=98=E4=B8=80?= =?UTF-8?q?=E9=94=AE=E5=87=86=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/net_game.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parts/scenes/net_game.lua b/parts/scenes/net_game.lua index 1487abea..b49e3d9d 100644 --- a/parts/scenes/net_game.lua +++ b/parts/scenes/net_game.lua @@ -157,10 +157,10 @@ function scene.keyDown(key,isRep) end elseif not _hideReadyUI() then if key=='space' then - if NETPLY.map[USER.uid].playMode~='Gamer' then - (kb.isDown('lctrl','rctrl','lalt','ralt') and _setSpectate or _setReady)() - else + if NETPLY.map[USER.uid].playMode=='Spectator' or NETPLY.map[USER.uid].readyMode=='Ready' then _setCancel() + else + (kb.isDown('lctrl','rctrl','lalt','ralt') and _setSpectate or _setReady)() end elseif key=='s' then _gotoSetting()