Skip to content

Commit

Permalink
修复exterior结算页面按重开会出问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jul 30, 2024
1 parent fe0ef2e commit 0eed9f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions assets/scene/result_in.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions assets/scene/result_out.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0eed9f0

Please sign in to comment.