mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 04:52:07 +00:00
"/currentmap" command that prints the currently loaded map
This commit is contained in:
parent
808a208de4
commit
3a641c8beb
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue