mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-15 23:42:32 +00:00
host_cmd.c (Host_Mapname_f): Simplified map name retrieval.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@157 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
dbcc18293b
commit
e4623215dd
1 changed files with 2 additions and 6 deletions
|
@ -461,19 +461,15 @@ Host_Mapname_f -- johnfitz
|
|||
*/
|
||||
void Host_Mapname_f (void)
|
||||
{
|
||||
char name[MAX_QPATH];
|
||||
|
||||
if (sv.active)
|
||||
{
|
||||
COM_StripExtension (sv.worldmodel->name + 5, name);
|
||||
Con_Printf ("\"mapname\" is \"%s\"\n", name);
|
||||
Con_Printf ("\"mapname\" is \"%s\"\n", sv.name);
|
||||
return;
|
||||
}
|
||||
|
||||
if (cls.state == ca_connected)
|
||||
{
|
||||
COM_StripExtension (cl.worldmodel->name + 5, name);
|
||||
Con_Printf ("\"mapname\" is \"%s\"\n", name);
|
||||
Con_Printf ("\"mapname\" is \"%s\"\n", cl.mapname);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue