From: Mario Date: Fri, 30 Sep 2022 09:05:06 +0000 (+1000) Subject: Add some "always supported" gamemodes to the supported gamemodes list when the .arena... X-Git-Tag: xonotic-v0.8.6~328^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=645ad832deb8670591332a4f84b13d7a7405a3f5;p=xonotic%2Fxonotic-data.pk3dir.git Add some "always supported" gamemodes to the supported gamemodes list when the .arena file contains type ffa --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index 0114b252d..24d7f4dfa 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -903,7 +903,9 @@ bool _MapInfo_ParseArena(string arena_filename, int fh, string pFilename, Gamety stored_supportedFeatures |= MAPINFO_FEATURE_WEAPONS; // type in quake 3 holds all the supported gametypes, so we must loop through all of them // TODO: handle support here better to include more Xonotic teamplay modes - string types = strreplace("team", "tdm ft", s); + string types = s; + types = strreplace("team", "tdm ft", types); + types = strreplace("ffa", "dm lms ka", types); if(strstrofs(s, "tournament", 0) < 0 && strstrofs(s, "tdm", 0) >= 0) // larger team map, support additional gamemodes! types = cons(types, "ca kh"); FOREACH_WORD(types, true,