mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Music_Init: refactor some code for less duplication
This commit is contained in:
parent
97a66a1856
commit
95a0fcabd5
1 changed files with 3 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue