]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't call a menu command when running a dedicated server
authorMario <mario@smbclan.net>
Fri, 2 Aug 2019 09:00:14 +0000 (19:00 +1000)
committerMario <mario@smbclan.net>
Fri, 2 Aug 2019 09:00:14 +0000 (19:00 +1000)
qcsrc/server/g_world.qc

index 5b34926fcc1214b7af2e6c3f6e88582cf1fda9e0..98c274282e1219c28820ba97524e3da514451dc0 100644 (file)
@@ -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)