diff --git a/neo/framework/Session.cpp b/neo/framework/Session.cpp index 837f7f52..184a90ee 100644 --- a/neo/framework/Session.cpp +++ b/neo/framework/Session.cpp @@ -108,6 +108,13 @@ static void Session_Map_f( const idCmdArgs &args ) { map = args.Argv(1); if ( !map.Length() ) { + // DG: if the map command is called without any arguments, print the current map + // TODO: could check whether we're currently in a game, otherwise the last loaded + // map is printed.. but OTOH, who cares + const char* curmap = sessLocal.mapSpawnData.serverInfo.GetString( "si_map" ); + if ( curmap[0] != '\0' ) { + common->Printf( "Current Map: %s\n", curmap ); + } return; } map.StripFileExtension();