From 95a0fcabd54588f77e5c78546352d86269faad65 Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 4 Dec 2023 20:18:14 -0800 Subject: [PATCH] Music_Init: refactor some code for less duplication --- src/music.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/music.cpp b/src/music.cpp index b95d74b4a..89b691096 100644 --- a/src/music.cpp +++ b/src/music.cpp @@ -133,9 +133,9 @@ void Music_Init(void) } { - Tune& tune = g_tunes.insert("menu_nocred"); + Tune& tune = g_tunes.insert("menu_nocred", g_tunes.find("menu")); - tune.priority = 100; + tune.credit = false; } { @@ -165,14 +165,10 @@ void Music_Init(void) } { - Tune& tune = g_tunes.insert("stereo_fade"); + Tune& tune = g_tunes.insert("stereo_fade", g_tunes.find("stereo")); - tune.priority = 1000; tune.fade_out = 5000; tune.fade_out_inclusive = false; - tune.resist = true; - tune.keep_open = true; - tune.credit = true; } }