diff --git a/parts/scenes/customGame.lua b/parts/scenes/customGame.lua index b2301164..6b639fc8 100644 --- a/parts/scenes/customGame.lua +++ b/parts/scenes/customGame.lua @@ -72,9 +72,11 @@ function scene.keyDown(key) local str=sys.getClipboardText() local args=splitStr(str:sub((str:find(":")or 0)+1),"!") if #args<4 then goto fail end - if not pasteQuestArgs(args[1])then goto fail end - if not pasteSequence(args[2])then goto fail end - if not pasteMission(args[3])then goto fail end + if not( + pasteQuestArgs(args[1])and + pasteSequence(args[2])and + pasteMission(args[3]) + )then goto fail end repeat table.remove(FIELD)until #FIELD==0 FIELD[1]=newBoard() for i=4,#args do diff --git a/parts/scenes/custom_mission.lua b/parts/scenes/custom_mission.lua index b9a421a2..798e250d 100644 --- a/parts/scenes/custom_mission.lua +++ b/parts/scenes/custom_mission.lua @@ -20,7 +20,6 @@ end local missionEnum=missionEnum local legalInput={Z=true,S=true,J=true,L=true,T=true,O=true,I=true,A=true,_=true,P=true} function scene.keyDown(key) - local MISSION=MISSION if key=="left"then local p=cur if p==0 then