From 90f97ef50a7b819a9d189b0c378454e4eb5d275e Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 2 Sep 2023 17:05:05 +0100 Subject: [PATCH] Comamnd_Map_f: Now that you can use the console from the menus, forbid starting a new session from the server join process (which includes the Server Browser) --- src/d_netcmd.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index faa8c4b16..92486af6f 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -2320,9 +2320,17 @@ static void Command_Map_f(void) INT32 newgametype = gametype; boolean newencoremode = (cv_kartencore.value == 1); - if (client && !IsPlayerAdmin(consoleplayer)) + if (Playing()) { - CONS_Printf(M_GetText("Only the server or a remote admin can use this.\n")); + if (client && !IsPlayerAdmin(consoleplayer)) + { + CONS_Printf(M_GetText("Only the server or a remote admin can use this.\n")); + return; + } + } + else if (netgame) + { + CONS_Printf(M_GetText("You cannot start a session while joining a server.\n")); return; }