mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-20 15:02:37 +00:00
Move options menu profile reset to before profile gets set
When exiting a card, once the transition ends, there was a 1 tic window that an A press could select a card and THEN set the profile pointer to NULL.
This commit is contained in:
parent
a884e332ba
commit
a880044f19
1 changed files with 6 additions and 6 deletions
|
|
@ -123,6 +123,12 @@ void M_HandleProfileSelect(INT32 ch)
|
||||||
boolean creatable = (maxp < MAXPROFILES);
|
boolean creatable = (maxp < MAXPROFILES);
|
||||||
(void) ch;
|
(void) ch;
|
||||||
|
|
||||||
|
if (menutransition.tics == 0 && optionsmenu.resetprofile)
|
||||||
|
{
|
||||||
|
optionsmenu.profile = NULL; // Make sure to reset that when transitions are done.'
|
||||||
|
optionsmenu.resetprofile = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!creatable)
|
if (!creatable)
|
||||||
{
|
{
|
||||||
maxp = MAXPROFILES;
|
maxp = MAXPROFILES;
|
||||||
|
|
@ -215,10 +221,4 @@ void M_HandleProfileSelect(INT32 ch)
|
||||||
M_GoBack(0);
|
M_GoBack(0);
|
||||||
M_SetMenuDelay(pid);
|
M_SetMenuDelay(pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menutransition.tics == 0 && optionsmenu.resetprofile)
|
|
||||||
{
|
|
||||||
optionsmenu.profile = NULL; // Make sure to reset that when transitions are done.'
|
|
||||||
optionsmenu.resetprofile = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue