From 2dce107cdbd0d06db3c8737ad0e54cb85493fe9b Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 2 Aug 2019 19:00:14 +1000 Subject: [PATCH] Don't call a menu command when running a dedicated server --- qcsrc/server/g_world.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 5b34926fc..98c274282 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -1219,7 +1219,8 @@ void Maplist_Init() cvar_set("g_maplist", MapInfo_ListAllAllowedMaps(MapInfo_RequiredFlags(), MapInfo_ForbiddenFlags() | MAPINFO_FLAG_NOAUTOMAPLIST)); if(autocvar_g_maplist_shuffle) ShuffleMaplist(); - localcmd("\nmenu_cmd sync\n"); + if(!server_is_dedicated) + localcmd("\nmenu_cmd sync\n"); Map_Count = tokenizebyseparator(autocvar_g_maplist, " "); } if(Map_Count == 0) -- 2.39.2