This commit is contained in:
Jaime Passos 2019-08-19 14:43:48 -03:00
parent 85499040d3
commit 29dc1119e5
4 changed files with 23 additions and 7 deletions

View File

@ -358,7 +358,7 @@ static void D_Display(void)
// clean up border stuff
// see if the border needs to be initially drawn
if (gamestate == GS_LEVEL || (gamestate == GS_TITLESCREEN && titlemapinaction && curbghide))
if (gamestate == GS_LEVEL || (gamestate == GS_TITLESCREEN && titlemapinaction && curbghide && (!hidetitlemap)))
{
// draw the view directly

View File

@ -75,6 +75,7 @@ INT32 curbgcolor;
INT32 curbgxspeed;
INT32 curbgyspeed;
boolean curbghide;
boolean hidetitlemap; // WARNING: set to false by M_SetupNextMenu and M_ClearMenus
static UINT8 curDemo = 0;
static UINT32 demoDelayLeft;

View File

@ -94,6 +94,7 @@ extern INT32 curbgcolor;
extern INT32 curbgxspeed;
extern INT32 curbgyspeed;
extern boolean curbghide;
extern boolean hidetitlemap;
#define TITLEBACKGROUNDACTIVE (curfadevalue >= 0 || curbgname[0])

View File

@ -3418,6 +3418,7 @@ void M_ClearMenus(boolean callexitmenufunc)
if (currentMenu == &MessageDef) // Oh sod off!
currentMenu = &MainDef; // Not like it matters
menuactive = false;
hidetitlemap = false;
}
//
@ -3456,6 +3457,8 @@ void M_SetupNextMenu(menu_t *menudef)
}
}
}
hidetitlemap = false;
}
//
@ -7714,10 +7717,6 @@ static void M_SetupChoosePlayer(INT32 choice)
if (Playing() == false)
M_ChangeMenuMusic("_chsel", true);
charseltimer = 0;
charselscrollx = charselfadescrollamt;
//wipegamestate = -1;
SP_PlayerDef.prevMenu = currentMenu;
M_SetupNextMenu(&SP_PlayerDef);
if (!allowed)
@ -7730,7 +7729,12 @@ static void M_SetupChoosePlayer(INT32 choice)
char_on = description[char_on].next;
}
}
char_scroll = 0; // finish scrolling the menu
// finish scrolling the menu
char_scroll = 0;
charseltimer = 0;
charselscrollx = charselfadescrollamt;
Z_Free(char_notes);
char_notes = V_WordWrap(0, 21*8, V_ALLOWLOWERCASE, description[char_on].notes);
}
@ -7880,7 +7884,17 @@ static void M_DrawSetupChoosePlayerMenu(void)
// Yes.
if (thismenu)
{
M_DrawLoadGameData();
if (charselscrollx)
{
// Don't hide the title map yet
hidetitlemap = false;
M_DrawLoadGameData();
}
else
{
// Okay, fine, now you can
hidetitlemap = true;
}
charseltimer++;
}
else if (charseltimer > 0)