fix check for mods menu

This commit is contained in:
Eric Wasylishen 2017-06-12 14:06:59 -06:00
parent 48e160ef7e
commit 8d6d071fbb
3 changed files with 15 additions and 5 deletions

View file

@ -2202,6 +2202,7 @@ static void COM_Game_f (void)
TexMgr_NewGame ();
Draw_NewGame ();
R_NewGame ();
M_NewGame ();
}
ExtraMaps_NewGame ();
DemoList_Rebuild ();

View file

@ -2674,16 +2674,24 @@ void M_Init (void)
Cmd_AddCommand ("help", M_Menu_Help_f);
Cmd_AddCommand ("menu_quit", M_Menu_Quit_f);
// ericw -- check for graphics for mods menu
if (COM_FileExists("gfx/p_mod.lmp", NULL)
&& COM_FileExists("gfx/mainmenu2.lmp", NULL)
&& !COM_CheckParm("-nomodmenu"))
M_NewGame ();
}
void M_NewGame (void)
{
// ericw -- check for graphics for mods menu
if (COM_FileExists ("gfx/p_mod.lmp", NULL)
&& COM_FileExists ("gfx/mainmenu2.lmp", NULL)
&& !COM_CheckParm ("-nomodmenu"))
{
m_have_mods_menu = true;
}
else
{
m_have_mods_menu = false;
}
}
void M_Draw (void)
{
if (m_state == m_none || key_dest != key_menu)

View file

@ -53,6 +53,7 @@ extern qboolean m_entersound;
// menus
//
void M_Init (void);
void M_NewGame (void);
void M_Keydown (int key);
void M_Charinput (int key);
qboolean M_TextEntry (void);