From 645ad832deb8670591332a4f84b13d7a7405a3f5 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 30 Sep 2022 19:05:06 +1000 Subject: [PATCH] Add some "always supported" gamemodes to the supported gamemodes list when the .arena file contains type ffa --- qcsrc/common/mapinfo.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.39.2