Skip to content

Commit

Permalink
Quit to menu also resigns.
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogleFrog committed Apr 28, 2018
1 parent 5cfc8f5 commit dbb390f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LuaUI/Widgets/gui_epicmenu.lua
Expand Up @@ -2755,6 +2755,9 @@ local function MakeQuitButtons()
if (paused) and AllowPauseOnMenuChange() then
spSendCommands("pause")
end
if not (IsSinglePlayer() or Spring.GetSpectatingState()) then
spSendCommands("spectator")
end
if Spring.GetMenuName and Spring.GetMenuName() ~= "" then
Spring.Reload("")
else
Expand Down

0 comments on commit dbb390f

Please sign in to comment.