From: Mario Date: Fri, 2 Aug 2019 09:00:14 +0000 (+1000) Subject: Don't call a menu command when running a dedicated server X-Git-Tag: xonotic-v0.8.5~1430 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2dce107cdbd0d06db3c8737ad0e54cb85493fe9b;p=xonotic%2Fxonotic-data.pk3dir.git Don't call a menu command when running a dedicated server --- 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)