]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add some "always supported" gamemodes to the supported gamemodes list when the .arena...
authorMario <mario.mario@y7mail.com>
Fri, 30 Sep 2022 09:05:06 +0000 (19:05 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 30 Sep 2022 09:05:06 +0000 (19:05 +1000)
qcsrc/common/mapinfo.qc

index 0114b252d4b5e51fca39096424c1b3f505e85ec4..24d7f4dfa1870c9e82a773ab7f9847bbf4ae06a5 100644 (file)
@@ -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,