From e5a2cbaa9e68e0ab3d018d9fc4b802061436091b Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 15 Jul 2020 04:28:13 +1000 Subject: [PATCH] Fix replacement gametype names not being applied --- qcsrc/common/mapinfo.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index ae387e3db..c9e509907 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -601,9 +601,10 @@ Gametype MapInfo_Type_FromString(string gtype) 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); -- 2.39.2