mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 08:31:03 +00:00
main menu: print current mod
This commit is contained in:
parent
7ffb0a081b
commit
7a22f5738a
1 changed files with 13 additions and 0 deletions
|
@ -2792,6 +2792,19 @@ void M_Draw (void)
|
|||
break;
|
||||
}
|
||||
|
||||
// ericw -- print active mod
|
||||
{
|
||||
const char *modname = COM_SkipPath(com_gamedir);
|
||||
if (q_strcasecmp("id1", modname))
|
||||
{
|
||||
char active_mod[1024];
|
||||
q_snprintf(active_mod, sizeof(active_mod), "current mod: %s", modname);
|
||||
|
||||
GL_SetCanvas (CANVAS_BOTTOMLEFT);
|
||||
M_Print(0, 24*8, active_mod);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_entersound)
|
||||
{
|
||||
S_LocalSound ("misc/menu2.wav");
|
||||
|
|
Loading…
Reference in a new issue