mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 16:41:22 +00:00
fix check for mods menu
This commit is contained in:
parent
48e160ef7e
commit
8d6d071fbb
3 changed files with 15 additions and 5 deletions
|
@ -2202,6 +2202,7 @@ static void COM_Game_f (void)
|
|||
TexMgr_NewGame ();
|
||||
Draw_NewGame ();
|
||||
R_NewGame ();
|
||||
M_NewGame ();
|
||||
}
|
||||
ExtraMaps_NewGame ();
|
||||
DemoList_Rebuild ();
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue