mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'music-cleanup' into 'master'
Some M_PlayMenuJam fixes See merge request kart-krew-dev/ring-racers-internal!2857
This commit is contained in:
commit
055a4f9123
4 changed files with 5 additions and 8 deletions
|
|
@ -548,9 +548,6 @@ void M_PlayMenuJam(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (soundtest.playing)
|
|
||||||
return;
|
|
||||||
|
|
||||||
const boolean trulystarted = M_GameTrulyStarted();
|
const boolean trulystarted = M_GameTrulyStarted();
|
||||||
const boolean profilemode = (
|
const boolean profilemode = (
|
||||||
optionsmenu.profilemenu
|
optionsmenu.profilemenu
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,8 @@ void M_ResetOptions(void)
|
||||||
// For profiles:
|
// For profiles:
|
||||||
memset(setup_player, 0, sizeof(setup_player));
|
memset(setup_player, 0, sizeof(setup_player));
|
||||||
optionsmenu.profile = NULL;
|
optionsmenu.profile = NULL;
|
||||||
|
optionsmenu.profilemenu = false;
|
||||||
|
optionsmenu.resetprofilemenu = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void M_InitOptions(INT32 choice)
|
void M_InitOptions(INT32 choice)
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,7 @@ void M_FirstPickProfile(INT32 c)
|
||||||
{
|
{
|
||||||
if (c == MA_YES)
|
if (c == MA_YES)
|
||||||
{
|
{
|
||||||
M_ResetOptions(); // Reset all options variables otherwise things are gonna go reaaal bad lol.
|
M_ResetOptions(); // Reset all options variables otherwise things are gonna go reaaal bad lol.
|
||||||
optionsmenu.profile = NULL; // Make sure to get rid of that, too.
|
|
||||||
|
|
||||||
PR_ApplyProfile(optionsmenu.profilen, 0);
|
PR_ApplyProfile(optionsmenu.profilen, 0);
|
||||||
|
|
||||||
|
|
@ -162,7 +161,7 @@ void M_HandleProfileSelect(INT32 ch)
|
||||||
|
|
||||||
if (menutransition.tics == 0 && optionsmenu.resetprofile)
|
if (menutransition.tics == 0 && optionsmenu.resetprofile)
|
||||||
{
|
{
|
||||||
optionsmenu.profile = NULL; // Make sure to reset that when transitions are done.'
|
optionsmenu.profile = NULL; // Make sure to reset that when transitions are done.
|
||||||
optionsmenu.resetprofile = false;
|
optionsmenu.resetprofile = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -135,8 +135,7 @@ static void M_ProfileEditExit(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
M_ResetOptions(); // Reset all options variables otherwise things are gonna go reaaal bad lol.
|
M_ResetOptions(); // Reset all options variables otherwise things are gonna go reaaal bad lol.
|
||||||
optionsmenu.profile = NULL; // Make sure to get rid of that, too.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_SaveProfiles(); // save profiles after we do that.
|
PR_SaveProfiles(); // save profiles after we do that.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue