Merge branch 'master' into Mario/mapinfo_title_fix
authorMario <mario@smbclan.net>
Sun, 21 Oct 2018 16:52:27 +0000 (02:52 +1000)
committerMario <mario@smbclan.net>
Sun, 21 Oct 2018 16:52:27 +0000 (02:52 +1000)
qcsrc/common/mapinfo.qc

index 5cfc8785140bfca8dec3ae75cfd4d079293c5972..62e03d21b6fe8ed4fe375ea60d845636bcc420d7 100644 (file)
@@ -739,6 +739,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;