Skip to content
Snippets Groups Projects
Commit a880044f authored by James R.'s avatar James R.
Browse files

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.
parent a884e332
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,12 @@ void M_HandleProfileSelect(INT32 ch)
boolean creatable = (maxp < MAXPROFILES);
(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)
{
maxp = MAXPROFILES;
......@@ -215,10 +221,4 @@ void M_HandleProfileSelect(INT32 ch)
M_GoBack(0);
M_SetMenuDelay(pid);
}
if (menutransition.tics == 0 && optionsmenu.resetprofile)
{
optionsmenu.profile = NULL; // Make sure to reset that when transitions are done.'
optionsmenu.resetprofile = false;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment