Don't execute exitgame command on dedicated servers

This commit is contained in:
Indev 2024-08-19 14:14:59 +03:00
parent 44b4a68528
commit 25d1828dde

View file

@ -5352,6 +5352,12 @@ void Command_ExitGame_f(void)
{
INT32 i;
if (dedicated)
{
CONS_Printf("This command cannot be used on dedicated server\n");
return;
}
D_QuitNetGame();
CL_Reset();
CV_ClearChangedFlags();