"/currentmap" command that prints the currently loaded map

This commit is contained in:
Daniel Gibson 2018-03-10 16:38:37 +01:00
parent 808a208de4
commit 3a641c8beb

View file

@ -464,6 +464,11 @@ CL_Precache_f(void)
CL_RequestNextDownload();
}
void CL_CurrentMap_f(void)
{
Com_Printf("%s\n", cl.configstrings[CS_MODELS + 1]);
}
void
CL_InitLocal(void)
{
@ -563,6 +568,8 @@ CL_InitLocal(void)
Cmd_AddCommand("download", CL_Download_f);
Cmd_AddCommand("currentmap", CL_CurrentMap_f);
/* forward to server commands
* the only thing this does is allow command completion
* to work -- all unknown commands are automatically