]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow hyphens in map titles
authorMario <zacjardine@y7mail.com>
Mon, 10 Sep 2018 13:33:25 +0000 (23:33 +1000)
committerMario <zacjardine@y7mail.com>
Mon, 10 Sep 2018 13:33:25 +0000 (23:33 +1000)
qcsrc/common/mapinfo.qc

index 0884bc8d79054c29d6d88bacb75ad88de011e09b..71b5335d753c3ff77dceae382b5e3e0adf738086 100644 (file)
@@ -757,6 +757,7 @@ float MapInfo_isRedundant(string fn, string t)
        // we allow the visible title to have punctuation the file name does
        // not, but not vice versa
        t = strreplace("-", "", t);
+       fn = strreplace("-", "", fn);
 
        if(!strcasecmp(fn, t))
                return true;