From: Mario Date: Tue, 27 Feb 2018 17:04:10 +0000 (+1000) Subject: Make warnings about unknown gametypes simple debug messages (mod gametypes are unknow... X-Git-Tag: xonotic-v0.8.5~2275 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8348f776229e17b86c2b63b1d911340b01e8827c;p=xonotic%2Fxonotic-data.pk3dir.git Make warnings about unknown gametypes simple debug messages (mod gametypes are unknown, no need to spam about it) --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index ca58d9f09..0884bc8d7 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -940,7 +940,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet if(f) _MapInfo_Map_ApplyGametype (s, pGametypeToSet, f, true); else if(!autocvar_g_mapinfo_ignore_warnings) - LOG_WARN("Map ", pFilename, " supports unknown game type ", t, ", ignored"); + LOG_DEBUG("Map ", pFilename, " supports unknown game type ", t, ", ignored"); } else if(t == "gametype") { @@ -949,7 +949,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet if(f) _MapInfo_Map_ApplyGametypeEx (s, pGametypeToSet, f); else if(!autocvar_g_mapinfo_ignore_warnings) - LOG_WARN("Map ", pFilename, " supports unknown game type ", t, ", ignored"); + LOG_DEBUG("Map ", pFilename, " supports unknown game type ", t, ", ignored"); } else if(t == "size") { @@ -996,7 +996,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet } else { - LOG_WARN("Map ", pFilename, " has a setting for unknown game type ", t, ", ignored"); + LOG_DEBUG("Map ", pFilename, " has a setting for unknown game type ", t, ", ignored"); } } else if(t == "clientsettemp_for_type") @@ -1013,7 +1013,7 @@ float MapInfo_Get_ByName_NoFallbacks(string pFilename, int pAllowGenerate, Gamet } else { - LOG_WARN("Map ", pFilename, " has a client setting for unknown game type ", t, ", ignored"); + LOG_DEBUG("Map ", pFilename, " has a client setting for unknown game type ", t, ", ignored"); } } else if(t == "fog")