From a3ecfca30b37a6220edd2a61c97e4805c4f97977 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 15 Mar 2021 22:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=97=B6=E6=8A=A5=E9=94=99=E6=8A=A5=E4=B8=8D?= =?UTF-8?q?=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 4578356c..dd0ecf69 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -375,7 +375,7 @@ function love.errorhandler(msg) gc.captureScreenshot(function(_)errScrShot=gc.newImage(_)end) gc.present() - SFX.fplay("error",SETTING.voc*.8) + SFX.fplay("error",SETTING and SETTING.voc*.8 or 0) local BGcolor=rnd()>.026 and{.3,.5,.9}or{.62,.3,.926} local needDraw=true @@ -383,7 +383,7 @@ function love.errorhandler(msg) local errorMsg=text and text.errorMsg or"An error has occurred during loading.\nError info has been created, and you can send it to the author." return function() love.event.pump() - for E,a,b in love.event.poll()do + for E,a,b,k in love.event.poll()do if E=="quit"or a=="escape"then destroyPlayers() return 1 @@ -392,7 +392,7 @@ function love.errorhandler(msg) needDraw=true elseif E=="focus"then needDraw=true - elseif E=="touchpressed"and b<26 or E=="mousepressed" and a==2 or E=="keypressed"and a=="z"then + elseif E=="touchpressed"and b<26 or E=="mousepressed"and k==2 or E=="keypressed"and a=="z"then if count<3 then count=count+1 SFX.play("ready",.5)