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)

This commit is contained in:
toaster 2023-09-02 17:05:05 +01:00
parent 124e69be60
commit 90f97ef50a

View file

@ -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;
}