From d2e5ae9161b8c3f04dd9beb27c8e5946c284717e Mon Sep 17 00:00:00 2001 From: sezero Date: Tue, 16 Feb 2010 09:47:04 +0000 Subject: [PATCH] client.h (client_state_t): added mapname[128] as a new member to hold the current map file name without path and extension. cl_parse.c (CL_ParseServerInfo): copy the naked name of the map file to the cl structure. host_cmd.c (Host_Map_f): print the current map name if no arguments are given. print help message if not connected. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@16 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/cl_parse.c | 3 +++ quakespasm/Quake/client.h | 1 + quakespasm/Quake/host_cmd.c | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/quakespasm/Quake/cl_parse.c b/quakespasm/Quake/cl_parse.c index bfd95cd8..3f0e9086 100644 --- a/quakespasm/Quake/cl_parse.c +++ b/quakespasm/Quake/cl_parse.c @@ -346,6 +346,9 @@ void CL_ParseServerInfo (void) // now we try to load everything else until a cache allocation fails // + // copy the naked name of the map file to the cl structure -- O.S + COM_StripExtension (COM_SkipPath(model_precache[1]), cl.mapname); + for (i=1 ; i: start a new server\n"); + } + return; + } + if (cmd_source != src_command) return;