]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix support for Clan Arena and Key Hunt in Q3 maps
authorMario <mario.mario@y7mail.com>
Fri, 30 Sep 2022 09:10:41 +0000 (19:10 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 30 Sep 2022 09:10:41 +0000 (19:10 +1000)
qcsrc/common/mapinfo.qc

index 24d7f4dfa1870c9e82a773ab7f9847bbf4ae06a5..ca90f2f33e1f2fe1f31b26698985b9308cd37c54 100644 (file)
@@ -906,7 +906,7 @@ bool _MapInfo_ParseArena(string arena_filename, int fh, string pFilename, Gamety
                        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!
+                       if(strstrofs(types, "tournament", 0) < 0 && strstrofs(types, "tdm", 0) >= 0) // larger team map, support additional gamemodes!
                                types = cons(types, "ca kh");
                        FOREACH_WORD(types, true,
                        {