diff --git a/assets/scene/result_in.lua b/assets/scene/result_in.lua index e0227f72..197cee32 100644 --- a/assets/scene/result_in.lua +++ b/assets/scene/result_in.lua @@ -11,9 +11,7 @@ function scene.mouseDown(_,_,k) if k==2 then SCN.back('none') end end function scene.keyDown(key) local action=KEYMAP.sys:getAction(key) if action=='restart' then - if GAME.playing then - SCN.swapTo('game_in','none',GAME.mode.name) - end + SCN.swapTo('game_in','none',GAME.mode.name) elseif action=='back' then SCN.back('none') end diff --git a/assets/scene/result_out.lua b/assets/scene/result_out.lua index 5303c9e8..505d959a 100644 --- a/assets/scene/result_out.lua +++ b/assets/scene/result_out.lua @@ -11,10 +11,7 @@ function scene.mouseDown(_,_,k) if k==2 then SCN.back() end end function scene.keyDown(key) local action=KEYMAP.sys:getAction(key) if action=='restart' then - SCN._pop() - if GAME.playing then - SCN.go('game_out',nil,GAME.mode.name) - end + SCN.swapTo('game_out',nil,GAME.mode.name) elseif action=='back' then SCN.back() end