]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix replacement gametype names not being applied
authorMario <mario.mario@y7mail.com>
Tue, 14 Jul 2020 18:28:13 +0000 (04:28 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 14 Jul 2020 18:28:13 +0000 (04:28 +1000)
qcsrc/common/mapinfo.qc

index ae387e3db9a576df164c92765a250bd1d9681923..c9e509907813feafe7828882a2fdb93bfd98cfbd 100644 (file)
@@ -601,9 +601,10 @@ Gametype MapInfo_Type_FromString(string gtype)
                case "assault":   replacement = "as"; break;
                case "race":      replacement = "rc"; break;
        }
                case "assault":   replacement = "as"; break;
                case "race":      replacement = "rc"; break;
        }
-       if (replacement != "" && WARN_COND)
+       if (replacement != "")
        {
        {
-               LOG_WARNF("MapInfo_Type_FromString (probably %s): using deprecated name '%s'. Should use '%s'.", MapInfo_Map_bspname, gtype, replacement);
+               if (WARN_COND)
+                       LOG_WARNF("MapInfo_Type_FromString (probably %s): using deprecated name '%s'. Should use '%s'.", MapInfo_Map_bspname, gtype, replacement);
                gtype = replacement;
        }
        FOREACH(Gametypes, it.mdl == gtype, return it);
                gtype = replacement;
        }
        FOREACH(Gametypes, it.mdl == gtype, return it);