old menus: Fix parental lock password entry.

git-svn-id: https://svn.eduke32.com/eduke32@4467 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2014-05-17 12:34:14 +00:00
parent 8f12e0dca0
commit 9e717525b6

View file

@ -1523,14 +1523,6 @@ void M_DisplayMenus(void)
margin = 60;
M_DrawTopBar("Adult Mode");
x = M_Probe(60,50+16,16,2);
if (x == -1)
{
M_ChangeMenu(MENU_GAMESETUP);
probey = 0;
break;
}
menutext(margin,50+16,MENUHIGHLIGHT(0),0,"Adult Mode");
menutext(margin,50+16+16,MENUHIGHLIGHT(1),0,"Enter Password");
@ -1564,6 +1556,14 @@ void M_DisplayMenus(void)
}
else
{
x = M_Probe(60,50+16,16,2);
if (x == -1)
{
M_ChangeMenu(MENU_GAMESETUP);
probey = 0;
break;
}
if (x == 0)
{
if (ud.lockout == 1)