mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Make sure to reset setup_player when backing out to not interfere with profile display
This commit is contained in:
parent
2e4a58095a
commit
debc93ff5c
1 changed files with 2 additions and 0 deletions
|
|
@ -2142,6 +2142,7 @@ static boolean M_HandlePressStart(setup_player_t *p, UINT8 num)
|
||||||
if (num == 0)
|
if (num == 0)
|
||||||
{
|
{
|
||||||
// We're done here.
|
// We're done here.
|
||||||
|
memset(setup_player, 0, sizeof(setup_player)); // Reset this to avoid funky things with profile display.
|
||||||
M_GoBack(0);
|
M_GoBack(0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -2264,6 +2265,7 @@ static boolean M_HandleCharacterGrid(setup_player_t *p, UINT8 num)
|
||||||
// we don't want to go to the input detection menu.
|
// we don't want to go to the input detection menu.
|
||||||
if (optionsmenu.profile)
|
if (optionsmenu.profile)
|
||||||
{
|
{
|
||||||
|
memset(setup_player, 0, sizeof(setup_player)); // Reset setup_player otherwise it does some VERY funky things.
|
||||||
M_GoBack(0);
|
M_GoBack(0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue