Skip to content

Commit

Permalink
Mute Main Menu ambient music with /nomovie cmdline (FAForever#3907)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ejsstiil authored May 31, 2022
1 parent ca3a251 commit da147ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/ui/menus/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ function CreateUI()
end

-- music
local ambientSoundHandle = PlaySound(Sound({Cue = "AMB_Menu_Loop", Bank = "AmbientTest",}))
local ambientSoundHandle = false
if not HasCommandLineArg("/nomovie") then
ambientSoundHandle = PlaySound(Sound({Cue = "AMB_Menu_Loop", Bank = "AmbientTest",}))
end

local musicHandle = false
function StartMusic()
Expand Down

0 comments on commit da147ec

Please sign in to comment.