From: Mario Date: Mon, 10 Sep 2018 13:33:25 +0000 (+1000) Subject: Allow hyphens in map titles X-Git-Tag: xonotic-v0.8.5~1750^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9bb27ae1bbee58716a774848462535d2133e4625;p=xonotic%2Fxonotic-data.pk3dir.git Allow hyphens in map titles --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index 0884bc8d7..71b5335d7 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -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;